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

Write a program to reverse a linked list?

8 Answers   Catalytic Software, Satyam,


Define pure virtual function?

0 Answers  


What is a flag in c++?

0 Answers  


What is a string example?

0 Answers  


How many bit combinations are there in a byte?

13 Answers   Intel, Microsoft,






What are the differences between java and c++?

0 Answers  


What things would you remember while making an interface?

0 Answers  


How do you differentiate between overloading the prefix and postfix increments?

0 Answers  


What is the difference between delegation and implemented-in-terms-of?

0 Answers  


If there are 1 to 100 Numbers in array of 101 elements. Which is the easy way to find repeated number?

2 Answers   Persistent,


What is == in programming?

0 Answers  


Is string an object in c++?

0 Answers  


Categories