Answer Posted / subhashish sen
The inline function is a special function which is basically
used for small function body.If a function with large body
is defined as inline then it would be treated as a normal
function.
The advantage is that the code gets inserted at the place of
function call so it will reduce the time taken for control
to go back and forth from function call to function
definition.So as a result it will make execution faster.
Note: When we declare a function as inline we merely send a
request to the compiler,so its up to the compiler whether
our request is is accepted or not.So its better to define an
inline function for a small function.
| Is This Answer Correct ? | 26 Yes | 4 No |
Post New Answer View All Answers
What is polymorphism and its types?
Why is encapsulation used?
Why do we need polymorphism in c#?
What causes polymorphism?
What is the use of oops?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is object in oop?
What is abstraction encapsulation?
class type to basic type conversion
Why interface is used?
How do you define a class in oop?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is meant by oops concept?
Why do while loop is used?
What does sksksk mean in text slang?