mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-09-21 04:26:54 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
702 B
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: