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

What do you mean by storage classes?

1 Answers  


What is the difference between a "copy constructor" and an "assignment operator" in C++?

0 Answers   Genpact,


What is Name Decoration?

2 Answers   Lucent,


Why null pointer is used?

0 Answers  


What is pointer to array in c++?

0 Answers  






What are the advantage of using register variables?

0 Answers  


Why c++ is so important?

0 Answers  


What is an html tag?

0 Answers  


What are the advantages of prototyping?

0 Answers  


What is an orthogonal base class in c++?

0 Answers  


Memory is not a constraint. In a single iteration(NOTE: you can't go back), how will you find out the 10th last node/item in a linked list.

16 Answers   BNB, FDS, Goldman Sachs, Nagarro,


How many namespaces are there in c++?

0 Answers  


Categories