Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!axion!planet!pegasus!prk From: prk@planet.bt.co.uk (KnightRider) Newsgroups: comp.lang.c Subject: Re: A question about typedef! Message-ID: Date: 22 Nov 90 11:16:51 GMT References: <1990Nov20.153907.12373@mathrt0.math.chalmers.se> Sender: usenet@planet.bt.co.uk (Usenet News Manager) Organization: RT743, BT Research Labs, Martlesham Heath, Ipswich, UK. Lines: 23 d0thomas@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@dtek.chalmers.se >Chalmers Institute of Technology, Gothenburg, SWEDEN Peter Knight BT Research #include