Consider this code: "int v = 20; --v; cout << v++;". What value is printed, what value is v left with?
.
.
Click on the title for the solution
.
.
20 is printed, v ends up with 19
19 is printed, v ends up with 20
20 is printed, v ends up with 20
19 is printed, v ends up with 19
cannot determine what is printed, v ends up with 20
.
Click on the title for the solution
.
.
This is the answer:
:
20 is printed, v ends up with 19
19 is printed, v ends up with 20
20 is printed, v ends up with 20
19 is printed, v ends up with 19
cannot determine what is printed, v ends up with 20
Comments
Post a Comment