Translation guide
A variable that is declared within a function or block and accessible only within that scope. In Japanese, this is typically expressed using the borrowed term ローカル変数 or the native term 局所変数.
To refer to a variable with local scope in a program.
The most common and widely understood term, borrowed from English. Used in most programming contexts.
この関数では、ローカル変数を使っています。
This function uses a local variable.
A more formal or academic term, sometimes used in textbooks or specifications. Less common in everyday programming conversation.
局所変数のスコープはそのブロック内に限られます。
The scope of a local variable is limited to its block.