Definition, Meaning & Synonyms
int
Data Type
/ɪnt/
Definition
A data type used in programming that represents integer values.
Examples
- In C++, you can declare an integer variable like this:
int age = 25;
- Using
int
can help to save memory when you need to store large arrays of whole numbers. - In Python, the
int()
function can convert a number from a string to an integer.
Meaning
In programming, ‘int’ is short for ‘integer’. It is commonly used to store whole numbers that do not contain any decimal points.
Synonyms
- integer
- whole number
- counting number