number enum elements

Bart Vanherck herckb@se.bel.alcatel.be
Wed Oct 20 06:23:00 GMT 1999


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





More information about the Gcc-help mailing list