int

The C# type for 32-bit whole numbers from about minus 2.1 billion to 2.1 billion, used for counts, quantities and most identifiers.

In more detail

When an identifier could grow past 2.1 billion use long, which is 64 bits. int is a value type.

Examples

int quantity = 12;
long productId = 9_000_000_000;

Related terms

Taught in

References