style

Freedman jfjr at mitre-bedford.arpa
Tue Apr 26 23:02:05 AEST 1988


  C provide tags and typdefs ie

I can make the following declaration

struct some_tag_name {
                  some_more_stuff
                }

or 

typedef struct {

                 some_stuff
  
               } some_type_name.

I can do similar things with enum.

 Now, as a former Pascal programmer I like the typedef method
MUCH better than the tag method. My question is this: Is
there any reason one method is preferred over the other?
(except for declarations for structure which will include
pointers -for trees, lists,etc)

Jerry Freedman, Jr      "Love is staying up all night 
jfjr at mitre-bedford.arpa   with a sick child,
(617)271-4563            or a healthy adult"



More information about the Comp.lang.c mailing list