Question: What is displayed on the console after the following code fragment has executed? int x=2; cout < < ++x; cout < < x++;
What is displayed on the console after the following code fragment has executed?
int x=2;
cout << ++x;
cout << x++;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
