Programming Languages C++ Objective
Mar 21, 2013

Which statement gets affected when i++ is changed to ++i?  

Choose the correct answer:
A) i = 20; i++;
B) for (i = 0; i<20; i++) { } 5
C) a = i++;
D) while (i++ = 20) cout <<i;
Detailed Explanation

Option A is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback