eolas/zk/Static_in_C.md

13 lines
268 B
Markdown
Raw Permalink Normal View History

2026-01-12 18:12:53 +00:00
---
tags:
- C
---
`static` signals that the variable is private to the file it appears in. It
cannot be accessed from outside of it.
The opposite to a global variable.
Using `static` prevents naming conflicts if you have another file with the same
variable name.