+ 2
What is the uniqueness of the int, float and double?
2 Answers
+ 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.
+ 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...... )