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


enum DAY
{
sunday,
monday,
tuesday
};

enum EDAYS
{
friday,
saturday,
sunday
};

void main()
{
int i =0;
if( i == sunday)
{
printf("%d",i);
}
}
what would be the output?

Answers were Sorted based on User's Feedback



enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; vo..

Answer / rakesh kumar

Re-declaration error

Is This Answer Correct ?    4 Yes 0 No

enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; vo..

Answer / shankar

Multiple declaration for 'sun'
An error comes!!!!!!

Is This Answer Correct ?    0 Yes 0 No

enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; vo..

Answer / sumit srivastava

0

Is This Answer Correct ?    0 Yes 0 No

enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; vo..

Answer / mukesh_biswajeet

The Answer or output is 0
Sunday is at zero[0] positon in Enum Day
and therefore the condition becomes true and
the initialised value of i is printed.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

#include<stdio.h> int main() { int a[3][3][2]= {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18}; printf("%d\n",*(*(*a+1)); return 0; } What will be the output of the above question? And how?

1 Answers   Groupon,


What are the key features in c programming language?

0 Answers  


#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }

2 Answers  


what is the difference between declaration ,defenetion and initialization of a variable?

7 Answers   LG Soft,


Hi Every one......... Please Any body give me the answer for my question. Is it possible to print the word "PRINT F", without using printf() statement in C-Language.

4 Answers  






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

0 Answers  


yogesh patil in dell

3 Answers   DELL,


What is type qualifiers?

0 Answers  


how to TOGGLE Nth bit of variable in a MACRO

1 Answers   NDS,


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

0 Answers  


Explain what is the difference between functions abs() and fabs()?

0 Answers  


Explain what is wrong with this program statement?

0 Answers  


Categories