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
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
How do we open a binary file in Read/Write mode in C?
What is the use of printf() and scanf() functions?
What is unsigned int in c?
How will you divide two numbers in a MACRO?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What are lookup tables in c?
given post order,in order construct the corresponding binary tree
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
What is the purpose of the statement: strcat (S2, S1)?
What are keywords in c with examples?
What is typedef?
How do I get an accurate error status return from system on ms-dos?
Explain what is the benefit of using #define to declare a constant?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..