What do you mean by inline function?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / prakash bora
The idea behind inline functions is to insert the code of a
called function at the point where the function is called.
If done carefully, this can improve the application's
performance in exchange for increased compile time and
possibly (but not always) an increase in the size of the
generated binary executables.
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / p suresh kumar
The __inline keyword tells the compiler to substitute the
code within the function definition for every instance of a
function call.
However, substitution occurs only at the compiler’s
discretion.
For example, the compiler does not inline a function if
its address is taken or if it is too large to inline.
Is This Answer Correct ? | 10 Yes | 8 No |
Answer / ajay
body of a function is simply coded in a single line.these
are easily compiled
Is This Answer Correct ? | 5 Yes | 4 No |
Answer / bujji
body of a function is simply coded in a single line.these
are easily compiled.
Is This Answer Correct ? | 5 Yes | 7 No |
Answer / poornima.r
the c++ provides a mechanism called inline function.when a function is declared as inline function,the complier copies the code of the function in the calling function
Is This Answer Correct ? | 1 Yes | 8 No |
What is oops with example?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
how do u initialize the constant variables
Is html an oop?
Definition of Object Oriented Programming in single line?
33 Answers Impact Systems, Q3 Technologies, TCS,
what is the application of oops?
which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean
How do you achieve runtime polymorphism?
i had specified the access specifier for abstarct class member like (pure virtual function) as private.But it can be accessed by the derived class.How the private member of one class is accessed by other class.if any body face this problem and found the solution plz reply to me.
Write A Program using Single and Multiple Inheritance.
What is inheritance and how many types of inheritance?
Can destructor be overloaded?