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



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

Answer / atul shankhwar

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.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C++ General Interview Questions

What are the advantages of using pointers in a program?

0 Answers  


why all c++ program must have default constructor?

6 Answers   IBM,


Are there any special rules about inlining?

0 Answers  


What should main() return in c and c++?

0 Answers  


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

0 Answers  


What is the difference between set and map in c++?

0 Answers  


What are the various compound assignment operators in c++?

0 Answers  


How does a copy constructor differs from an overloaded assignment operator?

0 Answers  


Please post the model question paper of hal?

2 Answers  


What language does google use?

0 Answers  


Who calls main function?

0 Answers  


If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?

0 Answers  


Categories