write the advantages and disadvantages of incline function
Answers
Answered by
3
Answer:
Inline function instruct compiler to insert complete body of the function wherever that function got used in code.
Advantages :- 1) It does not require function calling overhead. 2) It also save overhead of variables push/pop on the stack, while function calling. ...
Disadvantages :- ...
Performance : - ...
Uses Guidelines :-
Answered by
1
➭ AnSwer :-
⟹ Advantages :-
- It does not require function calling overhead.
- It also save overhead of variables push/pop on the stack, while function calling.
- It also save overhead of return call from a function.
⟹ Disadvantages :-
- Inline functions might cause thrashing because inlining might increase size of the binary executable file.
- Thrashing in memory causes performance of computer to degrade
Similar questions