Lesson 4 of 50 · c
Data Types & Sizes
Duration: 8 mins
C provides primitive types with implementation‑defined size. The sizeof operator lets you query the exact size in bytes.
| Category | Types | Typical Size (on 64‑bit) |
|---|---|---|
| Integer | char, short, int, long, long long | 1‑8 bytes |
| Floating | float, double, long double | 4‑16 bytes |
| Others | _Bool, void | 1 byte (bool) |
Use the stdint.h header for fixed‑width types (int8_t, uint32_t, etc.).