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 does sksksk mean in text slang?

0 Answers  


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

0 Answers  


Whats oop mean?

0 Answers  


difference between abstraction and encapsulation with progarammatic eg. hi,just recently i went for an interview .The interviewer asked what is the difference between abstraction and encapsulation with programmatic eg. I gave the answer as encapsulation mean hiding the relevant data which is not useful for the user, eg a electric fan .hiding the information how the electricity is converted into machanical energy. abtraction showing only the relevant data to the user eg electric fan. it look ,its color ,it design etc only relevant data. Then the interviewer asked me, give me some programmic eg .I Said Let assume a web form having control like textbox,button etc. The user can view textbox,button etc this is the eg of abstraction and when the user click on the button how he is redirected is not known by the user is the eg of the encapsulation. Am I Correct .was the answer given by me is perfect .now i am planing to go for an another interview should i give the same answer.IF not please suggest me a better answer.with some good eg Please help

1 Answers  


Why do we use encapsulation in oops?

0 Answers  






Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.

2 Answers  


What is difference between multiple inheritance and multilevel inheritance?

0 Answers  


Is this job good for future? can do this job post grduate student?

0 Answers  


write a program that takes input in digits and display the result in words from 1 to 1000

0 Answers   Wipro,


How would you stop a class from class from being derived or inherited.

18 Answers   Ness Technologies,


2. Give the different notations for the class.\

0 Answers  


In which cases you use override and new base?

2 Answers  


Categories