enumCnt Function

Retrieves the number of elements in an enumerated type.


int enumCnt(enum enumtype)

Parameter

Description

enumtype

The enumerated type to test.

The number of elements in enumtype.

// Returns 2 (the two elements are Yes and No).
enumCnt(NoYes);

Community Additions

ADD
Show: