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

can anyone suggest some site name..where i can get some good data structure puzzles???

2071


Add Two Numbers Without Using the Addition Operator

804


Can you explain the four storage classes in C?

1107


How was c created?

1031


Can a pointer be volatile in c?

970


Why malloc is faster than calloc?

1044


What are the different types of errors?

1120


What are header files in c programming?

1114


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2432


Is this program statement valid? INT = 10.50;

1128


Why c is called procedure oriented language?

1028


What is the right type to use for boolean values in c?

1017


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

2426


How to establish connection with oracle database software from c language?

2178


What is character set?

1156