Login and Register ×
Check your Email for the OTP
ICSE Computer Application - Class - X ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL
⚠ Report ✓ Question Verified Copy Link
if (c > d) x = c; else x = d;
Explanation:
The ternary operator is written as:
x = (condition) ? value_if_true : value_if_false;
In this case, if c > d, assign c to x; otherwise, assign d t
o x.
Related Topic:
Share Above MCQ
Learn More MCQ Questions from ICSE Computer Application - Class - X ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL