A question about typedef!

KnightRider prk at planet.bt.co.uk
Thu Nov 22 22:16:51 AEST 1990


d0thomas at dtek.chalmers.se (Thomas Lundqvist) writes:

>Hello! Could someone please tell me the difference between:

>struct TEST { int a; };

To use this later on, you have to use this code:

struct TEST var1, *var2;

>typedef struct { int a; } TEST
To use this, you can do:

TEST var1,*var2;

>--
>Thomas Lundqvist, d0thomas at dtek.chalmers.se
>Chalmers Institute of Technology, Gothenburg, SWEDEN

Peter Knight 
BT Research

#include <std.disclaimer>



More information about the Comp.lang.c mailing list