"enum" question
David Keppel
pardo at june.cs.washington.edu
Sat Mar 5 05:00:14 AEST 1988
I don't have any documentation about "enum". I've used it pretty happily
for awhile and then ran into this the other day:
typedef enumm { A, B, C, NELM } foo_t;
int a[ NELM ];
Pcc gags on this. I'm wondering (a) if it is supposed to (b) if it is
supposed to even when I do
typedef enumm { A = 0, B, C, NELM } foo_t;
and anything else enlightening.
;-D on (Instead of enumerating the options, I'll define them :-) Pardo
More information about the Comp.lang.c
mailing list