Type | int | |
Dimension | 32 bit (4 byte) | |
Domain | the set of integer numbers in the interval [- 231, + 231 - 1] | |
(more than 4 billion values) | ||
Operations | + | sum |
- | difference | |
* | product | |
/ | integer division | |
% | rest of the integer division | |
Literals | sequences of digits denoting values of the domain (e.g., 275930) |
Example::
int a, b, c; // Declaration of variables of type int a = 1; // Use of literals b = 2; c = a + b; // Arithmetic expression that involves operators of the language