Vidyalelo
C++ Programming · Q64

Arrays and Strings in C++

Programming · C++ Programming · question 64

Q64

What will be the output of the following C++ code? #include #include using namespace std; int main() char str[5] = "ABC"; cout << str[3]; cout << str; return 0;

A.
ABC
Answer
B.
ABCD
C.
AB
D.
AC

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board