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
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
What is the purpose of the "delete" operator?
What is c++ prototype?
Why do we use classes in programming?
What do you understand by pure virtual function? Write about its use?
What is lvalue?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
What are the various operations performed on stack?
What does floor mean in c++?
How would you use the functions memcpy(), memset(), memmove()?
What is rtti in c++?
What is decltype c++?
What does new in c++ do?
Differentiate between a constructor and a destructor in c++.
What are the important differences between c++ and java?