Define inline function
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 |
Write some differences between an external iterator and an internal iterator?
Is c++ slower than c?
What is size of empty class object
What is atoi?
why the size of an empty class is 1
What are inline functions?
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?
What does return 0 do in c++?
Find the second maximum in an array?
What is c++ w3school?
What is flush c++?
What are function prototypes?