What does the static keyword do?

Michał Balicki Avatar by Michał Balicki
on March 24, 2025

Hello!

In the context of C++ the static keyword has several uses. The main ones are:

It is also worth knowing what causes such a behavior of a static variable. It is mainly about locating it in a specific place in memory. This is illustrated in the figure below:

See you in the next post soon!


You Might Want To Read...
C++ What does the static keyword do?

Fishing Fishing summary for 2023 and plans for 2024

House Building a house - the next stage of work