How to get enum count
I have a Enum
typedef enum{
DEL_TIME_VALUE = -1,
DEL_TIMESEC_VALUE = 100,
DEL_TIMEMIN_VALUE = 200,
DEL_TIMEHOUR_VALUE = 300,
DEL_DAY_VALUE = 1000,
DEL_COUNT_VALUE = 1000,
....
.....
.....
DEL_END =90002
}WORKINGTIME;
How do i get the enum count.
I try below for loop!
for(int i=DEL_TIME_VALUE; i<=DEL_END; i++) {
}
I guess its not good one!
can any one tell me how to get enum count! which are declared in enum.
Thanks in advance!