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 / rahul sharma

Macro is a must do thing whearas inline is a hint to the compiler. he may choose not to inline if the function seems complex (it uses recursion or many loops)

Macro can have side effects e.g. the typical
SQUARE(++i); problem

but these problem are not there in inline functions

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of 'register' keyword in c language?

977


Write a code of a general series where the next element is the sum of last k terms.

986


Explain the array representation of a binary tree in C.

1166


Difference between goto, long jmp() and setjmp()?

1124


Difference between malloc() and calloc() function?

1130


Explain what is a const pointer?

1036


explain what is an endless loop?

1033


Explain the use of bit fieild.

1097


Explain the advantages and disadvantages of macros.

1035


Differentiate between null and void pointers.

1117


Should a function contain a return statement if it does not return a value?

1017


What is the use of static variable in c?

1044


What is the difference between call by value and call by reference in c?

1115


Explain what is the concatenation operator?

1108


What is a char in c?

931