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,  

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!