1. Which of the following is the correct usage of conditional operators used in C?
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.01 pm
Option A: assignment statements are always return in paranthesis in the case of conditional operator. It should be a>b? (c=30):(c=40); 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.