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...

#define d 10+10
main()
{
printf("%d",d*d);
}

Answer Posted / vrushali

This boils down to (10 +10 * 10 + 10)

so answer is 120 ... but if the same macro was rewritten as
#define d (10 + 10)

then d * d = (10 + 10 ) * (10 + 10)
= 20 * 20
= 400....

Pure macro concept....

Is This Answer Correct ?    15 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of main( ) in c language?

1089


What are the general description for loop statement and available loop types in c?

1074


Explain high-order bytes.

1061


How do you determine a file’s attributes?

1016


What are shell structures used for?

984


Explain what are preprocessor directives?

1015


Explain what are its uses in c programming?

1015


Explain c preprocessor?

1045


What are the usage of pointer in c?

1122


What does calloc stand for?

1087


What is meant by gets in c?

1103


I have a varargs function which accepts a float parameter?

997


What does char * * argv mean in c?

999


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

2023


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1034