R
Ravi
I read from the book "The Complete Reference - C" that C99 allows us
to declare for loop variables as
for(int i=0; i < 10; i++)
printf("%d",i);
however, my compiler(gcc) gives me the error:
" 'for' loop initial declaration used outside C99 mode "
Please explain.
to declare for loop variables as
for(int i=0; i < 10; i++)
printf("%d",i);
however, my compiler(gcc) gives me the error:
" 'for' loop initial declaration used outside C99 mode "
Please explain.