write a c++ program to find maximum of two numbers using
inline functions.
Answer Posted / manjunathtek
#include<iostream>
using namespace std;
int main()
{
int c;
c=max(5,4); //will display 5
cout<<c<<endl;
return 0;
}
inline int max(int a, int b)
{
return (a>b)? a:b;
}
Is This Answer Correct ? | 140 Yes | 52 No |
Post New Answer View All Answers
Why multiple inheritance is not allowed?
How do you define social class?
How is class defined?
What is oops in simple words?
What is the problem with multiple inheritance?
what is graphics
Why oops is important?
What is stream in oop?
What is object and example?
What is difference between inheritance and polymorphism?
program for insertion ,deletion,sorting in double link list
Why do while loop is used?
What is data binding in oops?
What type of loop is a for loop?
Why is abstraction used?