1 Answers
Code:
//INLINE FUNCTION
#include <iostream>
using namespace std;
inline int add(int a,int b)
{
return(a+b);
}
int main()
{
int x = 10,y = 10;
cout<<“Sum is :”<<add(x,y)<<endl;
return 0;
}
Output:
Sum is :20
Process returned 0 (0x0) execution time : 0.119 s
Press any key to continue.