Local variables can be introduced anywhere in a compound expression. The scope of the variable starts with its declarations and ends with the end of the enclosing compound (i.e. lexical scoping).
local_var_decl: entity_type local_var_list ; local_var_list: local_var [`,' local_var_list] ; local_var: identifier [ `=' expression ] ;
If the expression
is provided, it defines the initial value of
the variable, named after the identifier
, introduced by this
local_var
. If omitted, the variable is initialized to the
default value of its type.
Go to the first, previous, next, last section, table of contents.