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 |
What are the advantages of using pointers in a program?
why all c++ program must have default constructor?
Are there any special rules about inlining?
What should main() return in c and c++?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
What is the difference between set and map in c++?
What are the various compound assignment operators in c++?
How does a copy constructor differs from an overloaded assignment operator?
Please post the model question paper of hal?
What language does google use?
Who calls main function?
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?