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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does s c mean on snapchat?

1186


I have seen function declarations that look like this

1093


Can a variable be both const and volatile?

1190


Lists the benefits of c programming language?

1202


How can I insert or delete a line (or record) in the middle of a file?

1069


What is const volatile variable in c?

1103


How many data structures are there in c?

1170


Why static variable is used in c?

1085


Tell me the use of bit field in c language?

1106


Write a program to generate random numbers in c?

1156


What should malloc() do?

1219


How can I invoke another program or command and trap its output?

1148


Describe wild pointers in c?

1166


Explain how do you convert strings to numbers in c?

1125


What is #include conio h?

1053