Inline functions :
#include
using namespace std;
class A
{
public:
void fun();
};
inline void A::fun()
{
cout<<"this is inline function\n";
}
main()
{
A a;
a.fun();
}
Op :
this is inline function.
#include
using namespace std;
inline int add(int x,int y)
{
int r;
r = x + y;
}
main()
{
cout<
}
Op :
30
0 comments: