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
{
SUNDAY,
MONDAY,
TUESDAY,
}day;
main()
{
day =20;

printf("%d",);
getch();
}
what will be the output of the above program



enum { SUNDAY, MONDAY, TUESDAY, }day; main() { day =20; printf("%d",); ..

Answer / shrikant auti

If u observe the program carefully,you will come to know
ther is syntax error.
enum
{
SUNDAY,
MONDAY,
TUESDAY,
}day;
main()
{
day =20;

printf("%d",);//printf("%d",) error maker
getch();
}

If u put it
printf("%d",day);
then it will print 20 because 20 is the latest value
assigned for day.

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More C Interview Questions

What is the time and space complexities of merge sort and when is it preferred over quick sort?

0 Answers   Amazon,


Is file a keyword in c?

0 Answers  


What is auto keyword in c?

0 Answers  


What is Generic pointer? What is the purpose of Generic pointer? Where it is used?

3 Answers  


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

0 Answers  


What is a macro in c preprocessor?

0 Answers  


How do you determine the length of a string value that was stored in a variable?

0 Answers  


How many keywords (reserve words) are in c?

0 Answers  


How many parameters should a function have?

0 Answers  


we have a 3litres jug and a 5 litres jug and no measures on them. using these two jugs how can we measure 4 litres of water?

2 Answers   Convergys,


How do I declare a pointer to an array?

6 Answers   IBM,


How can a program be made to print the name of a source file where an error occurs?

0 Answers  


Categories