Mega Code Archive

 
Categories / C / Code Snippets
 

For loop condition loop will not execute

#include <stdio.h> int main(void) { int j; /* this loop will not execute */ for(j = 11; j < 11; j = j + 1) printf("%d ", j); printf("terminating"); return 0; }