what is inline function?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is encapsulation in ict?
Are polymorphisms mutations?
What is encapsulation with example?
WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE
Have you ever interfaced with a database?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is polymorphism in oop example?
Why do we use polymorphism?
What is namespace?
What is the significance of classes in oop?
What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?
Can abstract class have normal methods?