Files
developer-roadmap/roadmaps/c/content/static@2XSFrsw3uSrAry5zJ3MV9.md
T
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

702 B

static

At file scope, static gives a variable or function internal linkage, restricting its visibility to the file it is defined in and preventing naming conflicts with other files. Inside a function, static on a local variable makes it retain its value between function calls instead of being reinitialized each time, while still keeping it local to that function. These two uses of static control different things, visibility versus lifetime, depending on where the keyword appears.

Visit the following resources to learn more: