Inline function is a function that is compiled by the compiler as the point of calling the function and the code is substituted at that point. This makes compiling faster. This function is defined by prefixing the function prototype with the keyword “inline”.
Such functions are advantageous only when the code of the inline function is small and simple. Although a function is defined as Inline, it is completely compiler dependent to evaluate it as inline or not.
Posted Date:- 2021-08-23 23:10:24
What is the role of the Static keyword for a class member variable?
What is a COPY CONSTRUCTOR and when is it called?
What is the difference between an Object and a Class?
Explain Register Storage Specifier.
What is a Storage Class? Mention the Storage Classes in C++.
What is wrong with this code?
T *p = 0;
delete p;
Explain what is COPY CONSTRUCTOR and what is it used for?
Explain what is pre-processor in C++?
Explain what is upcasting in C++?
Explain what is C++ exceptional handling?
What is the C-style character string?
Explain what are Access specifiers in C++ class? What are the types?
Define basic type of variable used for a different condition in C++?
.Explain Function overloading with a different number of arguments with an example?
Explain the declaration of variables in C++?
How To Get The Current Position Of The File Pointer?
What is an Inline function in C++?
How to reverse a vector in C++?
How to initialize vector in C++?
What are new and delete operator?
How to concatenate two strings in C++?
Explain briefly Classes & Objects?
What is calloc() function? Describe the syntax?
What is the function of the keyword "Auto"?
What are the functions of the scope resolution operator?
Can we have a String primitive data type in C++?
What is a mutable storage class specifier? How can they be used?
What do you mean by ‘void’ return type?
How to initialize a 2d vector in C++?
What is stl in C++ with example?
What is the use of pure virtual function?
What are character constants in C++?
Is there any advantage of using one over the other?
What is the difference between equal to (==) and Assignment Operator (=)?
How many ways are there to initialize an int with a Constant?
Comment on Local and Global scope of a variable.
Difference between Declaration and Definition of a variable.
What are the types of Polymorphism?