L
Lars Tackmann
I am used to write loops like:
"for (int i = 0; i < 10; i++);"
why are these loops not allowed in C99 (i get - `for' loop initial
declaration used outside C99 mode - when trying this with gcc 3.2.2),
are there any bad side efects in this code or do people just find it
syntactly wrong.
my other compiler (bordland) - do not complain about this, this is the
first time i have ever seen this.
thanks.
"for (int i = 0; i < 10; i++);"
why are these loops not allowed in C99 (i get - `for' loop initial
declaration used outside C99 mode - when trying this with gcc 3.2.2),
are there any bad side efects in this code or do people just find it
syntactly wrong.
my other compiler (bordland) - do not complain about this, this is the
first time i have ever seen this.
thanks.