Question: 23. What is printed by the following code fragment? int x12, y1, x2 y1 = ++x1; y2 = x2++; = 2, y2; std::cout <
23. What is printed by the following code fragment? int x12, y1, x2 y1 = ++x1; y2 = x2++; = 2, y2; std::cout < < x1 < < " " < < x2 < < ' '; std::cout < < y1 < < " < < y2 < < ' '; Why does the output appear as it does?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
