Posted On: Feb 22, 2018
The C++ language provides inline functions to reduce the function call overhead. An inline function is a method or function that is expanded in line when it is called. Whenever the inline function is called, the complete code of the inline function gets inserted or substituted at the point of the inline function call. The C++ compiler does this substitution at compile time. The inline function may increase the efficiency of the code if it is small.
The syntax for defining the function inline is:
inline return-type function-name(parameters)
{ // function code }
Never Miss an Articles from us.
Object-oriented programming (OOP) is a type of computer programming, also more commonly known as software design, in wh..
The statement #include is used in C++ to include the source file or import the header files containing definitions of f..
The ‘this’ pointer is passed as a hidden argument to all the non-static member method calls and is available as a l..