+ 1
Difference between int &double
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.
+ 1
int can be used in any decimal no but in double only fixed no decimal can be used
+ 1
acha ji