+ 5

Need help with loops in c

this is my program #include <stdio.h> int main() { int i = 3; while (i--) { int i = 100; i--; printf("%d ", i); } return 0; } it outputs is 99 99 99 but,i thought it would loop infinitely.. why it ain't looping infinitely???

4th Feb 2018, 4:00 PM
Ayush walia
Ayush walia - avatar
2 Respuestas
0
good
12th Oct 2020, 10:24 AM
Iadanzo
Iadanzo - avatar