top of page
03 Variables
Int and long
Integers are your primary data-type for number storage. We will be working with integers of 2 types "int" and "long". These can hold values of different size.
int - can hold a value of -32,768 to 32,767 (-2,147,483,648 to 2,147,483,647 for 32 bit devices)
long - can hold a value of -2,147,483,648 to 2,147,483,647
int var = val;
long var = val
bottom of page