0
what would be the answer if I use 8%5 under double datatype?
(i.e.,) double x = 8%5 ; returns ?
9 odpowiedzi
+ 2
3.0 actually. % is modulus, remainder of a division.
+ 2
3.0
+ 1
0.4 wil b d ans.
+ 1
3.0 is the answer bc double is float
0
3
0
3.0
0
3.0 will be the answer as double has decimal values
0
3
0
3