Define inline function



Define inline function..

Answer / hrpynux@gmail.com

An inline function is one for which the compiler copies the code from the function definition directly into the code of the calling function rather than creating a separate set of instructions in memory. This eliminates call-linkage overhead and can expose significant optimization opportunities.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Write some differences between an external iterator and an internal iterator?

0 Answers  


Is c++ slower than c?

0 Answers  


What is size of empty class object

5 Answers   CA,


What is atoi?

0 Answers  


why the size of an empty class is 1

4 Answers  






What are inline functions?

2 Answers   Fidelity, Verizon,


1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?

5 Answers  


What does return 0 do in c++?

0 Answers  


Find the second maximum in an array?

12 Answers   HCL,


What is c++ w3school?

0 Answers  


What is flush c++?

0 Answers  


What are function prototypes?

0 Answers  


Categories