I wrote the following code using a complier which was configured to be suitable with c89 standard using eclipse.
#include <stdio.h>
int main(void) {
int i=0;
printf("initial value for variable i is: %d\n",i);
while (i<3)
{
if (i==1) {continue;}
printf("%d\n",i);
i++;
}
return 0;
}
The problem is that the code doesn't get excuted (No errors at all) and nothing shows in the console. When removing the following line of code if (i==1) {continue;}
everything works correctly.