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 |
design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }
write a progra in c++ using class & object to find out wheather a given no. is prim or not.
what is the basic concept of inheritance?
What is virtual class and friend class?
what is graphics
What is abstraction oop?
inheritence with example
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What are oops methods?
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.
What is encapsulation selenium?
can you explain how to use JavaBean in Project