Consider the following conditional statement :    

if ( a> b)

x = a:

else

x = b;

Produce an equivalent code segment using a ternary operator

pair " ? : ".

Subject Programming Language
NU Year Set: 2.(d) Marks: 4 Year: 2012
Login to post your comment.