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 |
Why can't I perform arithmetic on a void* pointer?
Explain the differences between public, protected, private and internal.
What is #pragma statements?
what are bps & baud rates? differentiate these two?
How many types of functions are there in c?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
In which mode we open the file for read,write and append also in c ? a)W b)w+ c)r+ d)a
What is malloc return c?
write a program to display numbers from 1 to 10 and 10 to 1?
What is the difference between functions getch() and getche()?
Explain what is the difference between null and nul?