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
How can you determine the maximum value that a numeric variable can hold?
What are the loops in c?
What are the features of the c language?
How many identifiers are there in c?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
What is the right way to use errno?
What is difference between constant pointer and constant variable?
Explain what are binary trees?
How will you divide two numbers in a MACRO?
What is null in c?
Why is c so popular?
What is the need of structure in c?
Explain what is a stream?
Is printf a keyword?
using for loop sum 2 number of any 4 digit number in c language