mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-30 10:56:55 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
665 B
665 B
extern
The extern keyword declares that a variable or function is defined in another file, giving the compiler the information it needs to reference it without allocating storage again. It is typically placed in a header file so multiple source files can share the same global variable or function. Using extern correctly avoids duplicate-definition errors that occur when a variable is accidentally defined in more than one file.
Visit the following resources to learn more: