Q21
What is the output of the following code snippet in C++? char str[] = "Hello"; cout << str[4];
A.
e
B.
o
AnswerC.
Undefined behavior
D.
l
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board