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
1 Answer
+ 6
Ankit Kumar
See after loop there is semicolon.