Computer Science, asked by Abid22, 7 months ago

When will we use the inline function? Give an example.

Answers

Answered by dineshsahu8024
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 neelaaruna2020
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