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 volatile variables?
1.What is a Data Structure? Explain its need? 2.What is a Directed Graph? Write an algorithm to find whether a Directed Graph is connected or not? 3.Explain the process of converting a Tree to a Binary Tree.
what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
Program to find the sum of digits of a given number until the sum becomes a single digit
What is data structure in c programming?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
program to find the magic square
write a program to find out prime number using sieve case?
how to find the given number is prime or not?
code for concatination of 2 strings with out using library functions?
what is the difference between malloc() and calloc() function?
Is flag a keyword in c?