A question about typedef!
Doug Gwyn
gwyn at smoke.brl.mil
Wed Nov 21 04:44:06 AEST 1990
In article <1990Nov20.153907.12373 at mathrt0.math.chalmers.se> d0thomas at dtek.chalmers.se (Thomas Lundqvist) writes:
>Hello! Could someone please tell me the difference between:
>struct TEST { int a; };
>typedef struct { int a; } TEST
The first declares a structure tag, the second (assuming you provide a
terminating semicolon) declares a synonym for a tagless structure.
K&R probably explains this.
More information about the Comp.lang.c
mailing list