style
Doug Gwyn
gwyn at brl-smoke.ARPA
Wed Apr 27 03:28:15 AEST 1988
In article <13115 at brl-adm.ARPA> jfjr at mitre-bedford.arpa (Freedman) writes:
> 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?
Typedef was added to C after struct tags. For the most part it is
more convenient to use typedef. Sometimes it is easier to use tags,
though, as in
struct my_tag {
struct my_tag *link;
data_t data;
};
More information about the Comp.lang.c
mailing list