Files
developer-roadmap/roadmaps/c/content/variable-scopes@-Ea7jUSf6nHieVssBefno.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

733 B

Variable Scopes

Variable scope determines where in a program a variable can be accessed. Variables declared inside a function or block are local and only visible within that block, while variables declared outside any function are global and visible throughout the file, or across files if declared extern. Local variables generally exist only for the duration of the block they are declared in, and using a name from an outer scope inside a nested block temporarily hides the outer variable.

Visit the following resources to learn more: