Please explain, do inline functions improve performance?
Submitted by: AdministratorA function when defined as INLINE, the code from the function definition is directly copied into the code of the calling function.
It avoids the overhead of calling the actual function. This is because the complier performs and inline expansion which eliminates the time overhead when a function is called.
Reduces space as no separate set of instructions in memory is written.
Submitted by: Administrator
It avoids the overhead of calling the actual function. This is because the complier performs and inline expansion which eliminates the time overhead when a function is called.
Reduces space as no separate set of instructions in memory is written.
Submitted by: Administrator
Read Online C++ Inline Function Job Interview Questions And Answers
Top C++ Inline Function Questions
☺ | Define Inline Function? |
☺ | Explain what are static member functions? |
☺ | Tell me what happens when recursion functions are declared inline? |
☺ | Please explain, do inline functions improve performance? |
☺ | Explain advantages and disadvantages of using macro and inline functions? |
Top C Plus Plus Language Categories
☺ | C++ Pointers & Functions Interview Questions. |
☺ | C++ Operator Overloading Interview Questions. |
☺ | C++ Exception Handling Interview Questions. |
☺ | C++ Virtual Functions Interview Questions. |
☺ | C++ Template Interview Questions. |