Correct Answer: max = a>b ? a>c?a:c:b>c?b:c
Explanation:
Option B: it is syntatically wrong.
Option D: syntatically wrong, it should be return(a>b ? a:b);
Option C: it uses nested conditional operator, this is logic for finding greatest number out of three numbers.
Discussion & Comments