+ 1

How to remember range of int,float,double data types .?

20th Jun 2017, 6:53 AM
Master Gaurav
4 Réponses
+ 3
u dont need to remember the range of data, the important is u remember which one occupies less memory, just a tip
20th Jun 2017, 6:58 AM
Juliano Ventola
Juliano Ventola - avatar
+ 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.
20th Jun 2017, 6:56 AM
Ghauth Christians
Ghauth Christians - avatar
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
20th Jun 2017, 7:33 AM
Claudiu Stefan Haidu
Claudiu Stefan Haidu - avatar
0
Most languages give you a way to access the limits of each numeric type programmatically. Look for constants like maxint.
20th Jun 2017, 9:20 AM
Igor B
Igor B - avatar