When given an expression of the form
a ? b : c
what is its type? Can the types of b
and c
differ and the expression still be valid? If so, what are the rules on what the type of the expression is. What rules are there for rvalue- and lvalue-ness?