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 macros and inline functions?

Answer Posted / vishal

1> Macros are always expanded by pre-processor, whereas compiler may or may not replace the inline definitions. You cant force compiler to make a function inline. It is purely compiler based decision.

2> Debugging macros is also difficult.

3>  Expressions passed as arguments to inline functions are evaluated once. In some cases, expressions passed as arguments to macros can be evaluated more than once.

Here i got exact answer : http://www.firmcodes.com/difference-macro-inline-c/

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should I learn data structures in c or python?

1072


What is the use of getchar functions?

1231


Explain bitwise shift operators?

1314


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1319


What is an auto keyword in c?

1146


What are the rules for the identifier?

1217


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

1134


in linking some of os executables are linking name some of them

2200


What is the difference between ++a and a++?

1271


What is the difference between procedural and declarative language?

1187


How many levels deep can include files be nested?

1183


Why double pointer is used in c?

1087


What is merge sort in c?

1110


Explain the use of 'auto' keyword in c programming?

1181


What is the difference between c &c++?

1205