C Data Types
Data types define what kind of value a variable can store.
Common Data Types
| Data Type | Example |
|---|---|
| int | 10 |
| float | 10.5 |
| double | 25.678 |
| char | 'A' |
Integer
int number = 100;
Floating Point
float price = 99.50;
Character
char grade = 'A';
Choosing the appropriate data type helps represent data correctly.