# C++ keyword: `int`

From cppreference.com
< cpp‎ | keyword

### Usage

- `short int` type: as the declaration of the type when combined with `short`
- `unsigned short int` type: as the declaration of the type when combined with `unsigned` and `short`
- `int` type: as the declaration of the type
- `unsigned int` type: as the declaration of the type when combined with `unsigned`
- `long int` type: as the declaration of the type when combined with `long`
- `unsigned long int` type: as the declaration of the type when combined with `unsigned` and `long`

`long long int` type: as the declaration of the type when combined with two `long`s `unsigned long long int` type: as the declaration of the type when combined with `unsigned` and two `long`s | (since C++11)

### See also

- Fundamental types: `void`, std::nullptr_t(since C++11).
  - Integral types: `int`. Modifiers: `signed`, `unsigned`, `short`, `long`.
    - Boolean type: `bool`. Boolean literals: `false`, `true`.
    - Character types: `char`, `char8_t`(since C++20), `char16_t`, `char32_t`(since C++11), `wchar_t`.
  - Floating-point types: `float`, `double`.

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/keyword/int&oldid=175629"