Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answer / vijoeyz

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,
Home Page - http://geocities.com/vijoeyz/

Is This Answer Correct ?    74 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..

Answer / guest

ans is 6

Is This Answer Correct ?    58 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..

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

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

Answer / jayasree

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

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

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

Answer / yash

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

Answer / rajamanickam.m

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

Answer / sibi

11

Is This Answer Correct ?    5 Yes 24 No

Post New Answer

More C Interview Questions

Difference between Shallow copy and Deep copy?

0 Answers  


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.

1 Answers  


What is nested structure in c?

0 Answers  


why we use "include" word before calling the header file. is there any special name for that include??????

1 Answers   TCS,


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"

15 Answers   Accenture,


Write a c program using for loop in switch case?

1 Answers   Infosys,


21. #define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }

3 Answers  


Is exit(status) truly equivalent to returning the same status from main?

0 Answers  


#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf("\n%d",j) i+=j; } }

7 Answers   HCL,


Can we replace the struct function in tree syntax with a union?

0 Answers   Huawei,


What is the use of the function in c?

0 Answers  


Explain function pointer with exapmles.

2 Answers  


Categories