what is inline function?

Answers were Sorted based on User's Feedback



what is inline function?..

Answer / mishra@deepa

inline function are thise function which get,the body of
the function get pasted at the place of function call,means
it just take the place of the function call ,

it is not necessary that all inline function will remain
inline ,it can be changed into normal fuction call,if the
body of the function is quite big(like it include a long fo
loop).

it is just done to decrease the time of executionthe time a
fuction take to transfer a call to stack.

Is This Answer Correct ?    8 Yes 4 No

what is inline function?..

Answer / manish chakravarti

inline function is a small function,when programmer use in
our program small code function the compilar will
automaticlly precide inline keyword.

Is This Answer Correct ?    1 Yes 0 No

what is inline function?..

Answer / achal ubbott

The keyword inline before a function's name can make a
difference only if the function is small.
Such a thing helps in reducing the overhead of context
switching and thus making things work a little faster. It
is all upon the compiler to decide if it would really make
that inline or not. The amount of overhead depends upon the
architecture of the underlying CPU.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More OOPS Interview Questions

What is a mixin class?

4 Answers  


what is the 3 types of system development life cycle

1 Answers  


What is static modifier?

1 Answers  


why constructor cannt be declar virtually? why destructor cannt be overloaded?

2 Answers   Infosys,


What are the features of oop?

1 Answers  


What are the advantages of polymorphism?

1 Answers  


What is oops in simple words?

1 Answers  


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1 Answers  


what is difference between objects and function

1 Answers  


Why is object oriented programming so hard?

1 Answers  


c++ program to swap the objects of two different classes

1 Answers  


i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

3 Answers   Infosys,


Categories