write a program to find the largest of two numbers without
using for,while,switch,if else, conditional operator and do
while using c++ pgmng language
Answer Posted / random
double largest(double x, double y){
return (x+y)/2. + abs(x-y)/2.;
}
| Is This Answer Correct ? | 28 Yes | 9 No |
Post New Answer View All Answers
Can abstract class have normal methods?
What is difference between data abstraction and encapsulation?
What is polymorphism and its types?
What is debug class?what is trace class? What differences are between them? With examples.
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is data binding in oops?
2. Give the different notations for the class.\
Is data hiding and abstraction same?
How do you define social class?
What are main features of oop?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Why oops is important?
Can enum be null?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is a null tree?