C++ Program to display the cube of the number upto a given integer using Inline function.

Write C++ Program to display the cube of the number upto a given integer using Inline function.

C++ Program to display the cube of the number upto a given integer

The inline function Inline T4Tutorials::T4Tutorials_function() helps to increase the execution time of a program. The programmer can make a request to the compiler to make the inline function as Inline T4Tutorials::T4Tutorials_function().

Making inline means that compiler can replace the function definitions of Inline T4Tutorials::T4Tutorials_function()with the place where this function is called obj.T4Tutorials_function();.
The compiler replaces the definition of inline functions at compile time instead of referring function definition at runtime.

Output

Please enter the number:

4

cube of 1 is: 1

cube of 2 is: 8

cube of 3 is: 27

cube of 4 is: 64