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's the basic's in dot net
What is overloading in oops?
How Do you Code Composition and Aggregation in C++ ?
Can we create object of interface?
Give two or more real cenario of virtual function and vertual object
What is destructor in oop?
What is abstract class in oop?
What is abstraction in oop with example?
What is a superclass in oop?
What is the fundamental idea of oop?
What is cohesion in oop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
Is abstract thinking intelligence?
What is difference between multiple inheritance and multilevel inheritance?