Section 2.1 Using Data in C++
C++ requires the users specify the specific data type of each variable before it is used. The primary C++ built-in atomic data types are: integer (
int
), floating point (float
), double precision floating point (double
), Boolean (bool
), and character (char
). There is also a special type which holds a memory location called pointer
. C++ also has collection or compound data types, which will be discussed in a future chapter.
You have attempted 1 of 1 activities on this page.