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
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
Give two or more real cenario of virtual function and vertual object
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
Why is oop better than procedural?
2. Give the different notations for the class.\
Why do we use polymorphism in oops?
What is class and object in oops?
What is an advantage of polymorphism?
write a C++ program for booking using constructor and destructor.
What is oops concept with example?
What is methods in oop?
Is html an oop?
Why do we use class in oops?
What is the problem with multiple inheritance?
What is static modifier?