Brett wrote:
> Which you can't do in C (you have to make all declarations 
> first
> before any statements or function calls).

True for ANSI C89, but not in C99.
>From the C99 rationale:

-----
A new feature of C99: C89 requires all declarations in a 
block to occur before any statements. On the other hand, 
many languages similar to C (such as Algol 68 and C++) 
permit declarations and statements to be mixed in an 
arbitrary manner. This feature has been found to be useful 
and has been added to C99.
-----

David

Reply via email to