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

regarding pointers concept

1559


What is a function in c?

561


For what purpose null pointer used?

592


Explain about the functions strcat() and strcmp()?

587


What is indirection? How many levels of pointers can you have?

645






What is the explanation for the dangling pointer in c?

660


Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

652


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

623


What are types of preprocessor in c?

607


Tell me can the size of an array be declared at runtime?

583


Who developed c language and when?

567


What is bubble sort technique in c?

570


Stimulate calculator using Switch-case-default statement for two numbers

2432


What is character constants?

696


What is time null in c?

570