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 |
Write a program to check prime number in c programming?
write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
what is the use of bitfields & where do we use them?
Why doesnt this code work?
Why c is faster than c++?
SIR PLS TELL ME THE CODE IN C LANGUAGE TO PRINT THE FOLLOWING SERIES 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 2 1 1 2 1 1
Describe the modifier in c?
Difference between fopen() and open()?
difference between native and cross compilers
What is function prototype?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions