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 |
Difference between Shallow copy and Deep copy?
Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa.
What is nested structure in c?
why we use "include" word before calling the header file. is there any special name for that include??????
Which of the following are valid "include" formats? A)#include and #include[file.h] B)#include (file.h) and #include C)#include [file.h] and #include "file.h" D)#include <file.h> and #include "file.h"
Write a c program using for loop in switch case?
21. #define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }
Is exit(status) truly equivalent to returning the same status from main?
#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf("\n%d",j) i+=j; } }
Can we replace the struct function in tree syntax with a union?
What is the use of the function in c?
Explain function pointer with exapmles.