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 |
---|---|
| “Hello”, “eagle”, “Computer” |
| ’s’, ‘H’, ‘Q’ |
| 4, -852, 387245 |
| 7.8,-11.79835, 56732.8 |
| true, false, 1, 0 |
Last updated