In C, is there a nice way to track the number of elements in an enum? I\'ve seen
enum blah { FIRST, SECOND, THIRD, LAST };
int enaumVals[] = { FIRST, SECOND, THIRD, LAST }; #define NUM_ENUMS sizeof(enaumVals) / sizeof ( int );