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
What is the types of inheritance?
What is for loop and its syntax?
can inline function declare in private part of class?
What is inheritance in oop?
Why is polymorphism important in oop?
What are main features of oop?
Why do we use class?
how to get the oracle certification? send me the answer
What are the important components of cohesion?
What are functions in oop?
How do you define a class in oop?
What is abstraction example?
Explain the concepts involved in Object Oriented programming.
What is cohesion in oop?
How to use CMutex, CSemaphore in VC++ MFC