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 for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

0 Answers  


What is stl containers in c++?

0 Answers  


How does a copy constructor differs from an overloaded assignment operator?

0 Answers  


Why main function is special in c++?

0 Answers  


What are special characters c++?

0 Answers  


What are the various arithmetic operators in c++?

0 Answers  


What are raw sockets, where they are efficient?

2 Answers   Symphony,


Refer to a name of class or function that is defined within a namespace?

0 Answers  


What is type of 'this' pointer?

0 Answers  


What is a string example?

0 Answers  


What is the use of register keyword with the variables?

0 Answers  


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

0 Answers  


Categories