Answer:
When the function is defined Inline, the C++ compiler puts the function body inside the calling function. You can define function as Inline when the function body is small and need to be called many times, thus reduces the overhead in calling a function like passing values, passing control, returning values, returning control.
Previous Question | Next Question |
Explain what are static member functions? | Explain inline function? |