Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

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..

enum day = { jan = 1 ,feb=4, april, may}

- should have been -

enum day { jan = 1 ,feb=4, april, may};

However, the answer is 6, i.e., the option C.

Best,
Vijay Zanvar,

 Is This Answer Correct ? 70 Yes 15 No

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..

ans is 6

 Is This Answer Correct ? 50 Yes 10 No

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..

ans:6
becz feb=4 tthen apr=5 so may :6
enum takes next contious values

 Is This Answer Correct ? 25 Yes 2 No

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..

ans is 6
that is option c

 Is This Answer Correct ? 24 Yes 4 No

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..

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 ? 13 Yes 2 No

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..

ans is:6
becase enum takes contiguous values

 Is This Answer Correct ? 4 Yes 2 No

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..

none

 Is This Answer Correct ? 15 Yes 18 No

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..

11

 Is This Answer Correct ? 5 Yes 24 No

More C Interview Questions

c program to compute Income tax and Net Salary for its employees. The company offers tax relief of Kshs. 650 for single employees and Kshs. 1,100 for married employees. The relief will be deducted from the Gross salary, to give the taxable income. This will be computed at the following rates: [10mks] Taxable Income Rate (%) <5000 0 5000-19999 6 20000-36999 9 37000 and above 16

how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");

WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW IT COME .. #include<stdio.h> #include<conio.h> void main() { int k=20; printf("%d%d%d%d",k,k++,++k,k); getch(); }

Is c an object oriented programming language?

what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }

Is a house a mass structure?

Please write the area of a RIGHT ANGLED TRIANGLE.

what is difference between array,strutter,union and pointers

How can you check to see whether a symbol is defined?

One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

What is the scope of local variable in c?

can we declare a function in side the structure?

Categories