What are C++ inline functions?
C++ provides an inline functions to reduce the function call overhead. Inline function is a function that is expanded in line when it is called. ... This substitution is performed by the C++ compiler at compile time. Inline function may increase efficiency if it is small.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why c++ is not a pure oop language?
Can inline functions have a recursion? Give the reason?
What does extern mean in a function declaration in c++?
What is the type of 'this' pointer? When does it get created?
What is the real purpose of class – to export data?
Which one is a preferred language C or C++? Why?
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.
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
In a function declaration, what does extern mean?
What are the differences between the function prototype and the function defi-nition?
Why the usage of pointers in C++ is not recommended ?
Explain abstraction.