+ 6
its very simple
conditional operator is used to find max out of two numbers.
whereas if or else if can have different conditions.
like if(a%2==0) //this will find remainder
{
cout<<"number is even";
}
elseif(a%2!=0)
{
cout<<"number is odd";
}
else
{
cout<<"number is zero";
}
in this way we can have many different types of conditions according to our requirement