What do you mean by inline function?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / prakash bora
The idea behind inline functions is to insert the code of a
called function at the point where the function is called.
If done carefully, this can improve the application's
performance in exchange for increased compile time and
possibly (but not always) an increase in the size of the
generated binary executables.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / p suresh kumar
The __inline keyword tells the compiler to substitute the
code within the function definition for every instance of a
function call.
However, substitution occurs only at the compiler’s
discretion.
For example, the compiler does not inline a function if
its address is taken or if it is too large to inline.
| Is This Answer Correct ? | 10 Yes | 8 No |
Answer / ajay
body of a function is simply coded in a single line.these
are easily compiled
| Is This Answer Correct ? | 5 Yes | 4 No |
Answer / bujji
body of a function is simply coded in a single line.these
are easily compiled.
| Is This Answer Correct ? | 5 Yes | 7 No |
Answer / poornima.r
the c++ provides a mechanism called inline function.when a function is declared as inline function,the complier copies the code of the function in the calling function
| Is This Answer Correct ? | 1 Yes | 8 No |
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 is the difference between class and structure in C++?
What is polymorphism in oops with example?
I hv a same function name,arguments in both base class and dervied class, but the return type is different. Can we call this as a function overloading? Explain?
Difference between realloc() and free?
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 a function in oop?
what are the disadvantages of C++?
25 Answers ATS, Infosys, UNI, Wipro,
Write an operator overloading program to write S3+=S2.
Whats oop mean?
1. Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int[] GetFrequency(int[] list)
Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?