Which of the following is the correct usage of conditional operator

Loading

โœช Choose the correct option.

Which of the following is the correct usage of conditional operators used in C?

A. aamp;gt;b ? c=30 : c=40;
B. aamp;gt;b ? c=30;
C. max = aamp;gt;b ? aamp;gt;c?a:c:bamp;gt;c?b:c
D. return (aamp;gt;b)?(a:b)

Leave a Comment