#include <stdio.h> int main() { int i=0; for(i=1;i<=5;i++); printf("%d",i); return 0; } | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

#include <stdio.h> int main() { int i=0; for(i=1;i<=5;i++); printf("%d",i); return 0; }

Why this code give output 6

30th Dec 2020, 3:59 AM
Ankit Kumar
1 Answer
+ 6
Ankit Kumar See after loop there is semicolon.
30th Dec 2020, 4:05 AM
A͢J
A͢J - avatar