When will we use the inline function? Give an example.
Answers
Answered by
11
Answer:
Inline functions provide following advantages:
2) It also saves the overhead of push/pop variables on the stack when function is called. 3) It also saves overhead of a return call from a function. 4) When you inline a function, you may enable compiler to perform context specific optimization on the body of function.
Answered by
1
Explanation:
Inline functions provide following advantages:
2) It also saves the overhead of push/pop variables on the stack when function is called. 3) It also saves overhead of a return call from a function. 4) When you inline a function, you may enable compiler to perform context specific optimization on the body of function.
Similar questions