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?
Answer Posted / 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 View All Answers
What is the use of ?
Why we use break in c?
What is #pragma statements?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
What is the difference between far and near in c?
Why flag is used in c?
Why we write conio h in c?
What are inbuilt functions in c?
How is null defined in c?
What is #define size in c?
Is c compiled or interpreted?
What is c token?
Can you return null in c?
Explain how can I avoid the abort, retry, fail messages?
Explain Basic concepts of C language?