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

What is the types of inheritance?

1091


What is for loop and its syntax?

1077


can inline function declare in private part of class?

4395


What is inheritance in oop?

1032


Why is polymorphism important in oop?

1073


What are main features of oop?

1119


Why do we use class?

1085


how to get the oracle certification? send me the answer

2152


What are the important components of cohesion?

1018


What are functions in oop?

1048


How do you define a class in oop?

1113


What is abstraction example?

1092


Explain the concepts involved in Object Oriented programming.

1219


What is cohesion in oop?

1051


How to use CMutex, CSemaphore in VC++ MFC

4776