1 2 |
|
What does the above C++ code display?
Enter 999 as your answer if the results display any error.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
First increment being a post increment, just stores the i value at that instan and hence it is 5. Very next referal of i brings the incremented value from the before post increment and i is 6 here. As the next i is pre incremented, the value of i will be 7. Hence the answer will be 567.