Topic summary
Basic type
Extracted from the Wikipedia article Primitive data type.
C and C++ basic types
In C and C++, there are minimally four types, char, int, float, and double, but the qualifiers short, long, signed, and unsigned mean that C contains numerous target-dependent integer and floating-point primitive types. C99 allowed the modifier long to be used twice in combination with int (e.g. long long int). Similarly, signed and unsigned can be used as modifiers for integral types. C23 introduced the bool type as a core data type, while it was always a core data type of C++. C++ also features a std::byte type (similar to Java).