Computer Science, asked by skuazer83, 11 months ago

write the advantages and disadvantages of incline function ​

Answers

Answered by nimsunset
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 Anonymous
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