Chapter 4. Types

Table of Contents

Fundamental Types
Numeric Properties
NULL

Fundamental Types

C++ has the following builtin types:

  • char

  • signed char

  • unsigned char

  • signed short

  • signed int

  • signed long

  • unsigned short

  • unsigned int

  • unsigned long

  • bool

  • wchar_t

  • float

  • double

  • long double

These fundamental types are always available, without having to include a header file. These types are exactly the same in either C++ or in C.

Specializing parts of the library on these types is prohibited: instead, use a POD.