Will the inline function be compiled as the inline function always? Justify.
Answer Posted / 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 View All Answers
What do you mean by public protected and private in c++?
What is a constant? Explain with an example.
What is general format for a prototype?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
What is fflush c++?
What are references in c++?
How would perform Pattern Matching in C++?
Who made c++?
How do you clear a set in c++?
What is the cout in c++?
How much do coding jobs pay?
Briefly describe a B+ tree. What is bulk loading in it?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
Explain how a pointer to function can be declared in C++?