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 program to sort the number with different sorts in one program ??
What is encapsulation in oops?
What is protected in oop?
What is encapsulation in oop?
Why multiple inheritance is not allowed?
How is polymorphism achieved?
what is the sylabus for priliminaries?
Is data hiding and abstraction same?
What is class encapsulation?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
what is the drawback of classical methods in oops?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
Why is polymorphism important in oop?
How do you explain polymorphism?