Can you please explain the difference between using macro and inline functions?
Submitted by: MuhammadA textual substitution is provided by a macro as a constant, where as an inline function is procedure which is called at each time. Although the macros have few advantages over inline functions, the disadvantages are numerous.
Submitted by: Muhammad
Submitted by: Muhammad
Read Online C++ Virtual Functions Job Interview Questions And Answers
Top C++ Virtual Functions Questions
☺ | Can you please explain the difference between using macro and inline functions? |
☺ | Explain polymorphism? |
☺ | Explain object slicing in C++? |
☺ | Explain data encapsulation? |
☺ | What is Object slicing? |
Top C Plus Plus Language Categories
☺ | C++ Pointers & Functions Interview Questions. |
☺ | C++ Operator Overloading Interview Questions. |
☺ | C++ Exception Handling Interview Questions. |
☺ | C++ Template Interview Questions. |
☺ | C++ Virtual Functions Interview Questions. |