> You will just have to remember to declare all of your variables at the top of each function
This is still idiomatic to the C community, even if it isn't strictly required any longer. About the only place it's ignored is inline variables for loops.
This is still idiomatic to the C community, even if it isn't strictly required any longer. About the only place it's ignored is inline variables for loops.
This will fail to compile with an "undeclared identifier" error:
if ( x > 0 )
{
int y = 1;
}
printf("%d", y);
It is a feature that was long overdue in C IMHO.