What is the difference between inline functions and macros?

Answer Posted / glibwaresoftsolutions

• 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

What is virtual methods?

878


Why do we need pointers?

753


How do I make turbo c++ full screen?

786


Will a catch statement catch a derived exception if it is looking for the base class?

742


What is abstraction c++?

783


How do you sort a sort function in c++ to sort in descending order?

781


What are the uses of static class data?

867


What is format for defining a structure?

809


Explain the use of virtual destructor?

811


Can constructor be static in c++?

847


What operator is used to access a struct through a pointer a) >> b) -> c) *

841


What is a float in c++?

739


Is swift a good first language?

782


Are c and c++ different?

726


Explain terminate() function?

796