At 05:40 2007-02-02, Ray Devore wrote:
>I keep seeing two different ways to define a struct
>(see below). What is the benefit of doing the typedef
>over just defining the struct with a tag? Is one more
>efficient than the other?
it's a holdover from when C was a baby (and didn't actually make a
TYPE out of the name after struct.
C++ solved that problem
>typedef struct
>{
> int ivar;
> double dvar
>} Tdstruct;
>
>vs
>
>struct Tagstruct
>{
> int ivar;
> double dvar
>};
>
>Ray
>
>
>
>____________________________________________________________________________________
>8:00? 8:25? 8:40? Find a flick in no time
>with the Yahoo! Search movie showtime shortcut.
>http://tools.search.yahoo.com/shortcuts/#news
>
>
>To unsubscribe, send a blank message to
><mailto:[EMAIL PROTECTED]>.
>Yahoo! Groups Links
>
>
>
Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
"There oughta be a law"