Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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?

2345


Give two or more real cenario of virtual function and vertual object

2291


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.

2154


Why is oop better than procedural?

1033


2. Give the different notations for the class.\

2095


Why do we use polymorphism in oops?

994


What is class and object in oops?

1073


What is an advantage of polymorphism?

1038


write a C++ program for booking using constructor and destructor.

2499


What is oops concept with example?

975


What is methods in oop?

931


Is html an oop?

1010


Why do we use class in oops?

922


What is the problem with multiple inheritance?

1104


What is static modifier?

1144