What are C++ inline functions?

Answer Posted / hrpynux@gmail.com

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is implicit conversion/coercion in c++?

657


What is the difference between function overloading and operator overloading?

579


What's the "software peter principleā€?

625


Explain function overloading

587


Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?

1741






Out of fgets() and gets() which function is safe to use and why?

726


What is double in c++?

561


How can you create a virtual copy constructor?

585


Define whitespace in C++.

757


What is difference between class and function?

585


How does atoi function work?

628


Is there finally in c++?

624


How do you clear a buffer in c++?

541


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

612


Explain the extern storage classes in c++.

556