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 |
When is the “void” keyword used in a function?
where does malloc() function get the memory?
What is equivalent to ++i+++j?
Why we use stdio h in c?
write a program to read a number and print in words that is in sentence for example 21,219 then output is "twenty one thousand and two hundred nineteen" by using only control flow statements (only loops and switch case )?
How to get string length of given string in c?
What is the difference between GETS();AND SCANF();
what will be the out put. #include<stdio.h> void main() { printf("Output:"); printf(1+"vikashpatel"); }//output: ikashpatel
how can i calculate mean,median,mode by using c program
write a program without using main function?
How many types of operators are there in c?
Differentiate between calloc and malloc.