Data Types: What Are These?
Data Types: What Are These?
Data Types
"100"+"100" = ? 100+100=?
"100"+1=? 100+1=?
Length of "100" = ? Length of 100 = ?
Memory need for "100" = Memory need for 100 = ?
?
So, we can conclude that its not possible to answer each
of the questions mentioned above.
The int keyword denotes an integral type that stores values (source)
Its size is Signed 32-bit
Its range is -2,147,483,648 to 2,147,483,647
we can perform mathematical operations such as Addition, Subtraction etc on this type
however, we can't perform concatenation, remove space etc operations on this type of data