+ 1
How to remember range of int,float,double data types .?
4 Respostas
+ 3
u dont need to remember the range of data, the important is u remember which one occupies less memory, just a tip
+ 2
It's not expected of you to remember the range of the data types, you'll only need to know that if your program deals with large values.
0
int is displayed on 32 bits meaning 2^32
long = 2^64
float is also 32 bits: 1 for sign, 8 for int numbers, 23 for the fraction
double is 64 bits: 1 for sign, 11 for int, 52 for the fraction
0
Most languages give you a way to access the limits of each numeric type programmatically. Look for constants like maxint.