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 the use of mutable key word
Write a program in c++ to read two floating point numbers and find their sum and average.
can we make a class static without using static keyword?
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?
There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
what is overloading and overriding?
What is Method overloading?
what is the sylabus for priliminaries?
How many human genes are polymorphic?
What are the advantages of inheritance?
26 Answers IBS, TCS,
3. Differentiate verification and validation.
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory