What will be printed out as a result of the following code's execution:

int i = 0;
i++++++++++++++++++++; // 20 pluses
cout << i++ << endl;
Explanation
Postfix operators return the rvalue that can not be modified (as long as the opposite is not explicitly specified).

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C++ quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes