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 12 of 50 · c

Variable Scope & Storage Classes

Duration: 9 mins

C defines storage duration and linkage via storage‑class specifiers.

SpecifierDescription
autoDefault for local variables (automatic storage).
staticPersists for the life of the program; internal linkage for functions/variables at file scope.
externDeclares a variable defined in another translation unit.
registerHint to store in a CPU register (ignored by modern compilers).
_Thread_localC11 thread‑local storage.

Scope describes visibility (block, file, function).

Previous: Functions – Declaration & DefinitionNext: Pointers – Basics