Q19
What is the output of the following code: struct Point int x, y; ; Point p1; p1.x = 10; p1.y = 20; cout << p1.x << " " << p1.y; in C++?
A.
Garbage value 20 10
B.
10 20
AnswerC.
Compilation error
D.
None of the above
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board