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 is an Iterator class?
Explain terminate() and unexpected() function?
State the difference between pre and post increment/decrement operations.
Adobe Interview & Adobe Placement Paper
How can you say that a template is better than a base class?
What is the best way to take screenshots of a window with c++ in windows?
Where the memory to the static variables is allocated?
Is there any difference between dlearations int* x and int *x? If so tell me the difference?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
What are separators in c++?
Can a function take variable length arguments, if yes, how?
In a class only declaration of the function is there but defintion is not there then what is that function?