Campus interview zone
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

Go down

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

Post  Admin Sun Jan 31, 2010 5:48 pm

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.

Admin
Admin

Posts : 71
Join date : 2010-01-21

http://campus-interview.co.cc

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum