what is inline function?

Answers were Sorted based on User's Feedback



what is inline function?..

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

what is inline function?..

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

what is inline function?..

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

Post New Answer

More OOPS Interview Questions

The type of variable a pointer points to must be the part of pointer's definition so that:

1 Answers   Infosys,


i got a backdoor offer in process global,Bangalore..Can i work with it?

0 Answers  


What is polymorphism and why is it important?

0 Answers  


In the following declaration of main, "int main(int argc, char *argv[])", to what does argv[0] usually correspond? 1) The first argument passed into the program 2) The program name 3) You can't define main like that

6 Answers  


#include <string.h> #include <stdio.h> #include <stdlib.h> #include<conio.h> void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

0 Answers  


polymorphism means?

6 Answers   BFL,


What is ambiguity in c++

4 Answers   Accenture, Mphasis,


Program to read a comment string

1 Answers   IBM,


When will a constructor executed?

5 Answers   TCS,


Contrast OOP and SOA. What are tenets of each?

1 Answers   Siebel Systems, Wipro,


What is abstract class in oop?

0 Answers  


What does enum stand for?

0 Answers  


Categories