Answer Posted / 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 View All Answers
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What are the types of array in c++?
What is a try block?
What is the header file for setw?
What is called array?
How the endl and setw manipulator works?
How does a copy constructor differs from an overloaded assignment operator?
What is a dangling pointer in c++?
What is the use of namespace std in C++?
What is the full name of logo?
What is a driver program?
Who was the creator of c++?
Why do we use vector in c++?
Differentiate between a template class and class template in c++?
Does c++ support multilevel and multiple inheritances?