A question about typedef!

John Gordon gordon at osiris.cso.uiuc.edu
Wed Nov 21 13:56:45 AEST 1990


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

	I think the difference is that if you use the first way, you will
always have to say "struct TEST" whenever you declare a var of that type and
the second way you can just say "TEST" without the "struct".



More information about the Comp.lang.c mailing list