Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Will the inline function be compiled as the inline function always? Justify.

  Shared By: Adah Miller    Date: Jan 25    Category: C++ Programming    Views: 138

Answer:

An inline function is a request and not a command. Hence it won't be compiled as an inline function always.

Explanation:
Inline-expansion could fail if the inline function contains loops, the address of an inline function is used, or an inline function is called in a complex expression. The rules for inlining are compiler dependent.

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: