Inline function is a new concept introduce by C++ language. It replace function body code at the place of function call. In the class functions are by default inline.
Syntax: inline return_type function_name(Parameters){ }e.g:
#include<iostream.h> #include<conio.h> int power(int,int); void main() { clrscr(); cout<<"\nPower "<<power(2,3)<<" "<<power(4,5)<<" "<<power(3,3); getch(); } inline int power(int x,int y) { int sum=1; for(int i=1;i<=y;i++) sum*=x; return sum; }