netx_iit

used of inline function in c++

Jul 7th, 2020 (edited)
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. //used of inline function in c++
  2. #include<iostream>
  3. using namespace std;
  4. inline int max(int a,int b)
  5. {
  6.     return (a>b)?a:b;
  7. }
  8. using namespace std;
  9. int main()
  10. {
  11.     cout<<max(13,50);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment