What is the difference between inline functions and macros?

Answer Posted / nashiinformaticssolutions

• Inline Functions: Type-checked, replace function calls with code during compilation.
• Macros: Preprocessor directive, no type-checking.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a Structure contain a Pointer to itself?

795


What is difference between n and endl in c++?

766


Can you pass a vector to a function?

729


What are the comments in c++?

755


Eplain extern keyword?

768


Explain data encapsulation?

866


Explain selection sorting?

807


What gives the current position of the put pointer?

746


Who was the creator of c++?

766


Is there structure in c++?

768


Differences between private, protected and public and give examples.

764


Why is it necessary to use a reference in the argument to the copy constructor?

846


Is c the same as c++?

752


What are the advantages of using const reference arguments in a function?

828


What is this weird colon-member (" : ") syntax in the constructor?

743