Question: Which of these assignments are valid? Select the four correct answers. (a) short s = 12; (b) long l = 012; (c) int other =
Which of these assignments are valid?
Select the four correct answers.
(a) short s = 12;
(b) long l = 012;
(c) int other = (int) true;
(d) float f = -123;
(e) double d = 0x12345678;
Step by Step Solution
3.42 Rating (165 Votes )
There are 3 Steps involved in it
a b d and e In a the conditions for implicit narrowing conversion are fulfilled The source is ... View full answer
Get step-by-step solutions from verified subject matter experts
