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++. Although C++ has a std::byte type in the standard library, it is not a primitive like Java's byte, but rather an enum (which prevents implicit conversion into an integral type) used to represent a raw byte.