Will the inline function be compiled as the inline function always? Justify.



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

Post New Answer

More C++ General Interview Questions

How Virtual functions call up is maintained?

2 Answers  


Is c++ low level?

1 Answers  


What does std :: flush do?

1 Answers  


Is java easier than c++?

1 Answers  


What are the types of array in c++?

1 Answers  


What are pointer-to-members? Explain.

1 Answers   iNautix,


Explain differences between new() and delete()?

1 Answers  


What is the error in the code below and how should it be corrected?

1 Answers  


What is endl c++?

1 Answers  


Have you used MSVC? What do you think of it?

2 Answers   Google,


Why was c++ created?

1 Answers  


what are the iterator and generic algorithms.

1 Answers  


Categories