The code was supposed to print the numbers from 0 to 10. Why the output is reversed? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

The code was supposed to print the numbers from 0 to 10. Why the output is reversed?

https://code.sololearn.com/cLwjf15Wjg89/?ref=app

10th Mar 2020, 2:49 PM
Dipra Irham
Dipra Irham - avatar
2 Answers
+ 3
Modifying data and using it again between two sequence points leads to *undefined behaviour*, a topic every C writer has to accustom themselves with. https://en.m.wikipedia.org/wiki/Undefined_behavior
10th Mar 2020, 3:23 PM
HonFu
HonFu - avatar
0
Iterations are tricky constructs.
10th Mar 2020, 3:04 PM
Da2
Da2 - avatar