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 / swaroop

int max,a,b;
max = (a>b)? a:b ;

Is This Answer Correct ?    8 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is not an object oriented programming language?

544


How to call a non virtual function in the derived class by using base class pointer

5268


Why is encapsulation used?

577


What is oops concept with example?

578


How do you achieve runtime polymorphism?

571






What does no cap mean?

592


What is cohesion in oop?

624


What do you mean by overloading?

580


What do you mean by abstraction?

617


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3839


What is inheritance in oop?

604


Why do we use class?

635


Can you name some types of inheritance?

641


What is object in oop with example?

704


What polymorphism means?

624