What is the difference between inline functions and macros?

Answer Posted / hr@tgksolutions.com

• 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

Difference between pass by value and pass by reference?

838


What is one dimensional array in c++?

812


Is it possible to write a c++ template to check for a function's existence?

778


What are the c++ access specifiers?

1053


How do you initialize a string in c++?

732


What is the real purpose of class – to export data?

839


How many ways can a variable be initialized into in C++?

776


What are the general quetions are in DEna bank manager IT/System interviews?

1769


How can I disable the "echo" feature?

821


What are c++ variables?

770


Which one between if-else and switch is more efficient?

808


Explain the static storage classes in c++.

918


write a programme to get a character and thier ASCII value

2789


Is c++ still in demand?

869


What is c++ used for in games?

801