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

Where register variables are stored in c?

546


What is the difference between mpi and openmp?

732


write a c program in such a way that if we enter the today date the output should be next day's date.

1677


What is the difference between array and pointer?

562


Explain Basic concepts of C language?

641






What is the use of void pointer and null pointer in c language?

623


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

719


How many types of errors are there in c language? Explain

565


What is default value of global variable in c?

560


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1475


What is the explanation for the dangling pointer in c?

671


What is volatile keyword in c?

580


Why use int main instead of void main?

590


How we can insert comments in a c program?

630


What are the basic data types associated with c?

811