enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above

Answer Posted / yash

ans is:6
becase enum takes contiguous values

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is const keyword in c?

749


What is string in c language?

625


What are pointers really good for, anyway?

617


What is function prototype?

610


What is a ternary operator in c?

653






In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

720


What is pointer to pointer in c language?

595


Why is c called "mother" language?

857


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

712


Is c high or low level?

582


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

905


What are the different categories of functions in c?

644


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

813


Is null always defined as 0(zero)?

615


What is break statement?

632