ANS: C - max = a>b ? a>c?a:c:b>c?b:c
Option A: assignment statements always return in parenthesis in the case of a conditional operator. It should be a>b? (c=30):(c=40);
Option B: it is syntactically wrong.
Option D: syntatically wrong, it should be return(a>b ? a:b);
Option C: it uses a nested conditional operator, this is logic for finding the greatest number out of three numbers.