Question
06:
Find the largest and smallest byte, short, int, long, float, and double. Which
of these data types
requires the least amount of memory?
Ans:
The largest is
double.
The smallest is
byte.
The hierarchy
is: byte, short,
Question 07:
Show the result of the following remainders.
56 % 6
78 % -4
-34 % 5
-34 % -5
5 % 1
1 % 5
Ans
56 % 6 = 2
78 % -4 = -2
-34 % 5 = -4
-34 % -5 = -4
5 % 1 =0
1 % 5 =1
No comments:
Post a Comment