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
Answers were Sorted based on User's Feedback
Answer / bhavani
ans:6
becz feb=4 tthen apr=5 so may :6
enum takes next contious values
Is This Answer Correct ? | 25 Yes | 2 No |
Answer / saketh
Answer is :6,
solution:
enum is the variable that stores the values in a contiguous manner if they are not initilised with any values...
so,apr=5,may=6;
Is This Answer Correct ? | 14 Yes | 2 No |
What is output redirection?
Can I initialize unions?
Why is not a pointer null after calling free?
What are variables and it what way is it different from constants?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
every function has return the value?
What is enumerated data type in c?
What is data structure in c language?
What is the use of define in c?
How can I call fortran?
What is main return c?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?