bitPhile

Home

❯

notes

❯

tech

❯

c++

❯

static keyword

static keyword

Mar 09, 20261 min read

static keyword provides different meanings based on the context. For example,

  1. static with global variables makes them having internal linkage property.
  2. static with local variables (inside blocks or functions), changes their storage duration to static.

References

  1. https://www.learncpp.com/cpp-tutorial/static-local-variables/

Graph View

Created with Quartz v4.5.1 © 2026

  • Made with ❤️ by Nitin