I know this is a stupid question to ask but i am just asking this out of my curiosity. I just read this code somewhere:
#include<stdio.h>
int main() {
for ( ; 0 ; )
printf("This code will be executed one time.");
return 0;
}
Output:
This code will be executed one time.
This loop is executing once in Turbo C compiler while not working in gcc, but how can this be possible that this loop execute even for once?
Can you please guide me for the unusual behavior of this code in the Turbo C compiler, if there is any?