+ 2

What is the uniqueness of the int, float and double?

15th May 2019, 12:53 PM
Jeremiah Ajisafe Ifeoluwa
Jeremiah Ajisafe Ifeoluwa - avatar
2 Respuestas
+ 4
Integer: Keyword used for integer data types is int. Integers typically requires 4 bytes of memory space and ranges from -2147483648 to 2147483647. Floating Point: Floating Point data type is used for storing single precision floating point values or decimal values. Keyword used for floating point data type is float. Float variables typically requires 4 byte of memory space. Double Floating Point: Double Floating Point data type is used for storing double precision floating point values or decimal values. Keyword used for double floating point data type is double. Double variables typically requires 8 byte of memory space.
15th May 2019, 12:58 PM
Kartik
Kartik - avatar
+ 1
int =integers only like (1,2,3,4,...) float & double= both intgers and decimal numbers ( 1,2,3... 1.2, 3.46 ,7.45...... )
16th May 2019, 3:00 AM
Kiru Fk
Kiru Fk - avatar