Inline function:-
C++ inline function is powerful concept that is commonly used with classes. If a function is inlined, the compiler places a copy of the code of that function at each point where the function is called at compile time.
inline int fun(int n){return (n > 0 ? 1 :0);}