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 / shankar

Multiple declaration for 'sun'
An error comes!!!!!!

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is 'bus error'?

633


If fflush wont work, what can I use to flush input?

598


In which header file is the null macro defined?

839


What are header files in c?

604


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

619






How can variables be characterized?

1635


What are the advantages of using macro in c language?

581


how to build a exercise findig min number of e heap with list imlemented?

1599


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

641


What are near, far and huge pointers?

638


What is the ANSI C Standard?

768


Explain is it better to bitshift a value than to multiply by 2?

701


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

732


write a program to copy the string using switch case?

2390


How can I dynamically allocate arrays?

580