This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

number enum elements


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]