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 New modifiers?

1187


Why c language?

1125


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2148


What is %g in c?

1122


Do you have any idea how to compare array with pointer in c?

1094


Define circular linked list.

1082


Explain what is the difference between far and near ?

1166


How many types of functions are there in c?

1227


What does %c mean in c?

1142


What are near, far and huge pointers?

1116


Which is better pointer or array?

1071


What is a floating point in c?

1126


What is the purpose of 'register' keyword?

1137


Explain what header files do I need in order to define the standard library functions I use?

1229


What is the meaning of 2d in c?

1169