Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; vo..

Answer / rakesh kumar

Re-declaration error

Is This Answer Correct ?    4 Yes 0 No

enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; vo..

Answer / shankar

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

Is This Answer Correct ?    0 Yes 0 No

enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; vo..

Answer / sumit srivastava

0

Is This Answer Correct ?    0 Yes 0 No

enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; vo..

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

Post New Answer

More C Interview Questions

Write a program to check prime number in c programming?

0 Answers  


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

3 Answers   IBM,


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

0 Answers   InterGraph,


what is the use of bitfields & where do we use them?

2 Answers  


Why doesnt this code work?

0 Answers  


Why c is faster than c++?

0 Answers  


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

4 Answers  


Describe the modifier in c?

0 Answers  


Difference between fopen() and open()?

3 Answers   Aricent,


difference between native and cross compilers

0 Answers  


What is function prototype?

0 Answers  


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

0 Answers  


Categories