Which statement gets affected when i++ is changed to ++i?
A. i = 20; i++;
B. for (i = 0; i<20; i++) { }
C. a = i++;
D. while (i++ = 20) cout <<i;
Answer:A
Which statement gets affected when i++ is changed to ++i?
A. i = 20; i++; B. for (i = 0; i<20; i++) { } C. a = i++; D. while (i++ = 20) cout <<i;