1.2.1 Basic Data Types
In this lesson, you will explore basic data types in C++. Like other computer languages, C++ has data types for numbers, characters, and Boolean types.
In the table below, you can see the basic data types that will be explored in this lesson.
Variable Type
Examples
string
“Hello”, “eagle”, “Computer”
char
’s’, ‘H’, ‘Q’
int
4, -852, 387245
double
7.8,-11.79835, 56732.8
bool
true, false, 1, 0
Last updated