B
ballpointpenthief
I recently sent some code to a friend to go over, and I was told that
c99 doesn't allow variable declarations in for()
in other words you can't do this:
for (int i; i<9; i++);
I can't see what the reason for this not being allowed.
Any comments on this?
Cheers, Matt
c99 doesn't allow variable declarations in for()
in other words you can't do this:
for (int i; i<9; i++);
I can't see what the reason for this not being allowed.
Any comments on this?
Cheers, Matt