1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-28 11:39:52 +02:00

Add bool to C++ roadmap (#5578)

This commit is contained in:
Antonio Coratelli
2024-04-30 19:49:26 +02:00
committed by GitHub
parent f2a2ac9ec8
commit c72dd0081c

View File

@@ -49,6 +49,7 @@ C++ has several basic data types for representing integer, floating-point, and c
- `float`: single-precision floating-point values
- `double`: double-precision floating-point values
- `char`: single characters
- `bool`: boolean values
Variables must be declared with a data type before they can be used:
@@ -57,6 +58,7 @@ int x;
float y;
double z;
char c;
bool b;
```
## Control Structures