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

What is the Difference between Macro and ordinary
definition?

Answer Posted / d g patel

1. Macro takes parameters where as ordinary definition does
not.
2. Based on the parameter values to macro it can result in
different value at run time. Ordinary defination value
remains same at all place at run time.
3. Macro can be used for conditional operations where as
definition can not.
4. Using macro one can achieve inline functionality in C
ie. macro can be a function performing simple operations.
This is not possible using definitions.

Is This Answer Correct ?    46 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of bit field?

1184


What is a ternary operator in c?

1127


What are the 4 types of organizational structures?

1109


How is null defined in c?

1156


List some of the static data structures in C?

1202


What is the heap in c?

1085


shorting algorithmS

2259


How do you list a file’s date and time?

1073


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4695


Is int a keyword in c?

984


When should you use a type cast?

1129


How can you invoke another program from within a C program?

1076


How can I make sure that my program is the only one accessing a file?

1278


What is echo in c programming?

1031


What is the difference between NULL and NUL?

1297