Q15
What is the output of the following code: char str[] = "Hello"; cout << str; in C++?
A.
Compilation error
B.
Hello
AnswerC.
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