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 / rakesh kumar

Re-declaration error

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about block scope in c?

670


Can you tell me how to check whether a linked list is circular?

787


Where register variables are stored in c?

560


What are the characteristics of arrays in c?

622


Here is a neat trick for checking whether two strings are equal

574






What is a good way to implement complex numbers in c?

602


Why void main is used in c?

570


What are two dimensional arrays alternatively called as?

676


can anyone please tell about the nested interrupts?

1687


What are actual arguments?

654


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1578


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜nā€™ element.

1594


explain what is an endless loop?

619


How do you use a pointer to a function?

646


What is assignment operator?

635