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 the sylabus for priliminaries?
What is encapsulation process?
State what is encapsulation and friend function?
Why multiple inheritance is not possible?
What is the importance of oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Is html an oop?
What is inheritance in oop?
What are the 3 pillars of oop?
What is polymorphism give a real life example?
can we make game by using c
What is inheritance and how many types of inheritance?
What is the difference between a constructor and a destructor?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.