Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons

© 2026 BraveProgrammer. All rights reserved.

  1. Courses
  2. /
  3. C Programming Fundamentals

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.

CategoryTypesTypical Size (on 64‑bit)
Integerchar, short, int, long, long long1‑8 bytes
Floatingfloat, double, long double4‑16 bytes
Others_Bool, void1 byte (bool)

Use the stdint.h header for fixed‑width types (int8_t, uint32_t, etc.).

Previous: Basic Syntax & StructureNext: Variables & Constants