scope of a structure tag
Doug Gwyn
gwyn at smoke.BRL.MIL
Wed Jan 11 04:23:09 AEST 1989
In article <18915 at agate.BERKELEY.EDU> holub at violet.berkeley.edu () writes:
>Does the scope of a structure tag extend from the point of declaration to
>the end of the current compound statement or whatever (as I suspect) or
>can you define substructures with identical tags but different fields?
Structure tags have file, block, or (with ANSI C) prototype scope,
depending on where they occur. The {} in a structure declaration
do not delimit a block.
>Is my assumption correct?
Yes.
More information about the Comp.std.c
mailing list