static variable
A variable in programming that retains its value across function calls and exists for the lifetime of the program. Used in languages like C, C++, and Java.
静的変数は関数が終了しても値を保持します。
A static variable retains its value even after the function ends.
このクラスでは静的変数を使ってインスタンスの数を数えています。
In this class, a static variable is used to count the number of instances.
動的変数 (dynamic variable) is allocated and deallocated at runtime, while 静的変数 has a fixed lifetime and retains its value.
グローバル変数 (global variable) is accessible throughout the program, whereas 静的変数 may be limited to a file or function scope but still persists.
Compound of 静的 (static) and 変数 (variable). A direct calque from English 'static variable' used in computing contexts.