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 are pointers used for c++?

0 Answers  


Do the parentheses after the type name make a difference with new?

0 Answers  


Will rust take over c++?

0 Answers  


wap to accept 10 numbers & display the number of odd and even numbers??

1 Answers  


What is the difference between the functions rand(), random(), srand() and randomize()?

0 Answers  


what is a class? Explain with an example.

0 Answers  


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

0 Answers  


What are manipulators used for?

0 Answers  


What is a concrete class?

1 Answers  


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

0 Answers  


Difference between inline functions and macros?

0 Answers  


What is ios class in c++?

0 Answers  


Categories