What do you mean by inline function?

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


Please Help Members By Posting Answers For Below Questions

Write a c++ program to display pass and fail for three student using static member function

2824


What are oops functions?

594


What are main features of oop?

647


What is object and class in oops?

595


is there any choice in opting subjects like 4 out of 7

1739






What is pointer in oop?

543


What is polymorphism in oops?

567


Give two or more real cenario of virtual function and vertual object

1863


What does enum stand for?

622


any one please tell me the purpose of operator overloading

1977


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2157


What is class encapsulation?

618


What do you mean by Encapsulation?

651


What is interface? When and where is it used?

1670


Why do we use polymorphism in oops?

593