Lesson 4 of 50
cData Types & Sizes
8 mins
Course progress8%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 4 of 50
c8 mins
Keep these ideas in mind as you work through the lesson.
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.).