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
Answer / shankar
Multiple declaration for 'sun'
An error comes!!!!!!
| Is This Answer Correct ? | 0 Yes | 0 No |
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 |
Write any data structure program (stack implementation)
Explain union. What are its advantages?
Write a program that an operator and two operands read from input operand operator on the implementation and results display.
Is it possible to have a function as a parameter in another function?
What is structure padding ?
what does data structure mean?
What are the two forms of #include directive?
Explain the difference between exit() and _exit() function?
What is the difference between near, far and huge pointers?
How the processor registers can be used in C ?
Can you please explain the difference between strcpy() and memcpy() function?
How is a macro different from a function?