This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
number enum elements
- To: help-gcc at gnu dot org
- Subject: number enum elements
- From: Bart Vanherck <herckb at se dot bel dot alcatel dot be>
- Date: Wed, 20 Oct 1999 15:18:59 +0200
- Newsgroups: gnu.gcc.help
- Organization: Alcatel
- Xref: wodc7nx0 gnu.gcc.help:1481
hello,
I do not know if this is the right newsgroup .
how can I determine the number of elements in a enum
mode ?
enum element { one , two ,three , five }
I want now in a variable the number of elements ==> 4