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
Write a c++ program to display pass and fail for three student using static member function
What are oops functions?
What are main features of oop?
What is object and class in oops?
is there any choice in opting subjects like 4 out of 7
What is pointer in oop?
What is polymorphism in oops?
Give two or more real cenario of virtual function and vertual object
What does enum stand for?
any one please tell me the purpose of operator overloading
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
What is class encapsulation?
What do you mean by Encapsulation?
What is interface? When and where is it used?
Why do we use polymorphism in oops?