#include<stdio.h>
int main()
{
int i=5;
while(i--)
{
printf("%d\n",i);
};
printf("Out of loop\n");
return 0;
}
This code works fine! Does ;
at the end of a loop not mean anything?
So even if we add it, we don't have any problems? Just curious! I think adding ;
at the end of a loop doesn't make any sense.