tempvariable

noun
UK /ˈtɛmpˌvɛəriəbl/
US /ˈtɛmpˌvɛriəbl/

A temp variable is a small box in a computer that holds a value for a short time.

The programmer used a temp variable to swap the two numbers.


OTHER MEANINGS

2. A named storage spot used only while a calculation is being done.

She stored the sum in a temp variable before printing it.

3. A short-lived value that is thrown away after it is used.

The temp variable was cleared once the loop finished.

4. A helper name in code that makes a long expression easier to read.

He split the formula into two steps using a temp variable.