In what order does the the condition , iteration and initialization in for loop work | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In what order does the the condition , iteration and initialization in for loop work

26th Sep 2017, 6:18 PM
Abhijith A Menon
2 Answers
0
thank u very much
30th Sep 2017, 2:55 PM
Abhijith A Menon
- 1
for (I=0;I<n;I++) cout << I; Is identical to: I=0; while (I<n) { cout << I; I++; }
26th Sep 2017, 7:26 PM
John Wells
John Wells - avatar