Which of these assignments are valid?.
Select the four correct answers.
(a), (b), (d), and (e)
In (a), the conditions for implicit narrowing conversion are fulfilled: the source is a constant expression of type int, the destination type is of type short, the value of the source (12) is in the range of the destination type.
The assignments in (b), (d), and (e) are valid, since the source type is narrower than the target type and an implicit widening conversion will be applied.
The expression (c) is not valid.
Values of type boolean cannot be converted to other types.