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
Is oops and c++ same?
What is the difference between a template and a macro?
What is the difference between equal to (==) and assignment operator (=)?
What are the unique features of C++.
Name four predefined macros.
What is function prototyping? What are its advantages?
Is c++ faster than c?
What is time_t c++?
Explain the static member function.
Should you pass exceptions by value or by reference?
What do you mean by friend class & friend function in c++?
Write a program using display() function which takes two arguments.
Explain one-definition rule (odr).
What is pointer with example?
Which coding certification is best?