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 |
What are pointers? What are different types of pointers?
Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.
How are portions of a program disabled in demo versions?
what will be the output of" printf("%d%d",scanf("%d% d",&a&b));"
What is return type in c?
Explain the array representation of a binary tree in C.
What are comments and how do you insert it in a C program?
Program to find largest of three numbers without using comparsion operator?
Explain about the constants which help in debugging?
i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4
Tell me when would you use a pointer to a function?
explain what is a newline escape sequence?