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 do mean by network ?

1147


the question is that what you have been doing all these periods (one year gap)

2071


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1902


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

1149


what do you mean by enumeration constant?

997


Tell me what is the purpose of 'register' keyword in c language?

994


What is masking?

1136


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1116


How can I convert a number to a string?

1141


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

8030


What is the importance of c in your views?

1157


Can two or more operators such as and be combined in a single line of program code?

1351


How can I open files mentioned on the command line, and parse option flags?

1058


What are the advantages of using Unions?

1103


How can you restore a redirected standard stream?

1107