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

How would you use the functions fseek(), freed(), fwrite() and ftell()?

1206


What is the difference between malloc calloc and realloc in c?

1190


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1110


What are the keywords in c?

1177


What are the basic data types associated with c?

1319


What's the difference between constant char *p and char * constant p?

1193


How do I get an accurate error status return from system on ms-dos?

1179


When do we get logical errors?

1175


What is c value paradox explain?

1165


What is s or c?

1121


Can you write the algorithm for Queue?

2175


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1258


How will you delete a node in DLL?

1339


write a proram to reverse the string using switch case?

3009


Write a program to print fibonacci series without using recursion?

1224