demo code for enum in c:
What is the output of below C program?
a=0, e=4, i=8, o=14, u
compile time error
if no value is assigned to an enum field, then it calculates its value by incrementing 1 of previous field value. since 'o' value is 14, so 'u' value will be 14+1 that is 15.
Back To Top