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

design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }

0 Answers  


write a progra in c++ using class & object to find out wheather a given no. is prim or not.

2 Answers  


what is the basic concept of inheritance?

9 Answers  


What is virtual class and friend class?

5 Answers   IBS, Intel, Wipro,


what is graphics

0 Answers  






What is abstraction oop?

0 Answers  


inheritence with example

1 Answers  


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

0 Answers  


What are oops methods?

0 Answers  


write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.

4 Answers  


What is encapsulation selenium?

0 Answers  


can you explain how to use JavaBean in Project

3 Answers   Infosys, Satyam,


Categories