For the following code, assuming a short integer is 16 bits,
short y = 30000;
short x = y + 10000;
Which one of the following best describes the types present?
A. The expression y+10000 is a short and overflow occurs assigning to the short x
B. The expression y+10000 is an integer and overflow occurs assigning to the short x
C. The short y overflows when it is first initialized.
D. The expression y+10000 is a short and no overflow occurs assigning to the short x
Answers
Answered by
10
Answer:
omg yeah mera India
Answered by
3
Answer:
d
Explanation:
gddgxjhxjxnkj
Similar questions