C
Clausfor
Hello everybody,
I cannot find where in the K&R2 it is stated that variables must be
defined at the beginning
of a block and not within other lines.
In Section 1.2 I read:
In C, all variables must be declared before they are used, usually at
the beginning of the
function before any executable statements.
USUALLY does not mean ABSOLUTELY, correct?
I know that in C99 it is possible, but I'm interested in C89.
Can anyone tell me something about?
Thank you!
Claus
I cannot find where in the K&R2 it is stated that variables must be
defined at the beginning
of a block and not within other lines.
In Section 1.2 I read:
In C, all variables must be declared before they are used, usually at
the beginning of the
function before any executable statements.
USUALLY does not mean ABSOLUTELY, correct?
I know that in C99 it is possible, but I'm interested in C89.
Can anyone tell me something about?
Thank you!
Claus