Q44
What will be the output of the following code: void display() cout << "Hello"; int main() display(); return 0; in C++?
A.
Compilation error
B.
0
C.
Hello
AnswerD.
Undefined behavior
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board