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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?