What do you mean by inline function?  

 The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application's performance in exchange for increased compile time and possibly (but not always) an increase in the size of the generated binary executables.  

Showing Answers 1 - 7 of 7 Answers

Inline Functions are like Normal functions.When an inline Function is invoked the code of function is inserted instead of jump to code of function.

inline keyword is added to the function definition to make that particular function inline function.

inline keyword is just a request to the compiler.Sometimes Compiler will ignore the request and compile the function as normal function. 

  Was this answer useful?  Yes

Prateek Joshi

  • Oct 8th, 2006
 

Hi,

Inline function r used to tell the compiler to insert the code where the function call is made .It is upto the Compiler to decide whether to insert the code or not depending upon the code size and compiler optimized setting

thank you

Manoj

  • Dec 16th, 2006
 

When a function define the inside the body of the class is called Inline function or we can use just like general function only we add inline keywork in the function.

  Was this answer useful?  Yes

Yazhini

  • May 28th, 2007
 

Yes.What u all said is correct.Remember that,by default all the functions are said to be inline.So though u don't specify the keyword inline it means that the function is function is treated as inline function.But once u use the inline keyword then we have to specify it with along the scope resolution(::) operator

  Was this answer useful?  Yes

MCBod

  • Mar 31st, 2010
 

An inline function is a function where a copy of the logic is embedded in the application at each the point where it is called by the compiler. This basically allows a reduced overhead in function dereferencing

  Was this answer useful?  Yes

Sampada Wadkar

  • Apr 9th, 2012
 

An Inline function is a function that is expanded in line when it is invoked. That is compiler replaces the function call with the corresponding function code.. :)

Code
  1. CO06203

  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