What are inline functions?

Showing Answers 1 - 4 of 4 Answers

santosh/Piyush

  • Jul 20th, 2005
 

Inline functions are special callback types which are embedded in the caller (objects or functions) body, This reduces the overhead memory usage......

  Was this answer useful?  Yes

SHAKTI KUMAR

  • Oct 16th, 2005
 

The function which has declare inline makes the compiler free to jump to the function body directly.... 

  Was this answer useful?  Yes

Yashwant S pinge

  • Mar 27th, 2006
 

Inline function is a function which function name with function body at compiled time.In line function reduces the execution time .It is a small size function which never contains the loop, otherwise compiler treats the inline function as normal function.

  Was this answer useful?  Yes

Inline functions are small sized functions (basically 2-3 line function) which do not contain any loop.

whenever an inline function is invoked, it is expanded thereby rather then passing the?control to where it has been defined, thus reducing execution cost and time.

we cannot force a function to be inline. It is purely compiler's decision whether to take a function as inline or not.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions