Does anyone have an idea why my for loop doesn't execute? GCC compiles it without any warnings in regular mode. The only help I get in -pedantic mode is that there is a statement with no effect on line 20. I already knew that, but can't figure out why...


$ cat rot13.c

/* Rot 13 the command line */







void rot13(char);



int main(int argc, char **argv) {



  int rc = 0;

  int i = 0;



  printf("argc == %i
", argc);



  if (argc <= 1) {

    printf("Usage: %s 
", argv[0]);

  }

  else {



    for (i = 0; i++; i < argc) {

      /*  rot13(argv[i]); */

      printf("%s
", argv[i]);

    }

  }



  return rc;

}