C++ COURSE
C++ Data Types
Learn C++ programming with EDUHUB Code Hub.
C++ Data Types
Data types specify what type of data a variable can store.
| Data Type | Description |
|---|---|
| int | Stores whole numbers |
| float | Stores decimal numbers |
| double | Stores large decimal numbers |
| char | Stores single characters |
| string | Stores text |
| bool | Stores true or false |
int number = 100;
double price = 25.5;
char grade = 'A';
string name = "EDUHUB";
bool online = true;