hi all
shouldn't this program ask me for a key press before it execute again?Code:#include <stdio.h> main() { int d; for(d=0;d<100;d++) { printf("%d\n",d); getchar(); } exit(EXIT_SUCCESS); }
here is what i got
>a refers to my key press./count_a
0
>a
1
2
3
>a
4
5
6
it's printing about three times before it asks for my key press?
the question is
why is that happening?
thanks in advance