Which of the following automatic type conversion will be possible?
A.short to int
B.byte to int
C.int to long
D.long to int
Answers
Answered by
6
Automatic type conversion will be possible in the following case:
Option A, Option B, Option C.
In Automatic Type conversion, a lower data type is promoted to a higher type present in the expression. Higher type is never promoted to lower type automatically to prevent data loss.
byte has 8 bits
short has 2 byte
int has 4 byte
long has 8 byte
Byte< short < int < long.
Answered by
0
Answer:
c
Explanation:
implicit type conversion
Similar questions
Chemistry,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
English,
1 year ago
Hindi,
1 year ago