+ 1

Difference between int &double

8th Oct 2016, 3:19 PM
Yash khatri
Yash khatri - avatar
3 Answers
+ 9
int uses up 4 bytes of memory (and it CANNOT contain a decimal), double uses 8 bytes of memory. If you want to use a decimal, use double, which is a type float variable. Also, if you are planning on using huge numbers go with double. If you know you won't have a decimal and the numbers will be small, use int.
8th Oct 2016, 3:55 PM
Ryne
Ryne - avatar
+ 1
int can be used in any decimal no but in double only fixed no decimal can be used
10th Oct 2016, 8:49 AM
Arpita Chatterjee
Arpita Chatterjee - avatar
+ 1
acha ji
13th Nov 2016, 8:52 PM
Taani
Taani - avatar