Advertisements
Advertisements
प्रश्न
if (a < b)
c = a;
else
c = b;
It can be written as:
विकल्प
c = (b < a) ? a : b;
c = (a != b) ? a : b;
c = (a < b) ? b : a;
None
MCQ
उत्तर
None
Explanation:
Its correct representation using the ternary operator is:
c = (a < b) ? a : b
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?