Vidyalelo
C++ Programming · Q15

Arrays and Strings in C++

Programming · C++ Programming · question 15

Q15

What is the output of the following code: char str[] = "Hello"; cout << str; in C++?

A.
Compilation error
B.
Hello
Answer
C.
Undefined behavior
D.
None of the above

Answer: Option B

Solution

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