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 / sumit srivastava

0

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In c language can we compile a program without main() function?

576


how logic is used

1497


Explain what is the general form of a c program?

622


Explain how can I pad a string to a known length?

652


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1132






Explain how do you determine whether to use a stream function or a low-level function?

624


Which driver is a pure java driver

990


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

611


What are multidimensional arrays?

656


What does a pointer variable always consist of?

663


What is typeof in c?

605


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2718


What is a program flowchart and explain how does it help in writing a program?

671


Why do we need a structure?

585


What are the differences between new and malloc in C?

610