[comp.lang.c] "enum" question

pardo@june.cs.washington.edu (David Keppel) (03/05/88)

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