1.

Write the advantages and disadvantages of inline functions.

Answer»

Advantages of inline functions:

  • The speed of execution of a program increases.
  • Efficient code can be generated.
  • Readability of the program increases Disadvantages of inline functions.
  • The size of the executable file increases and more memory is required as the body of inline function is inserted in the place of function call.
  • Not suitable for too long , complicated, recursive function definition.


Discussion

No Comment Found