In
computer programming, a
temporary variable is a
variable whose purpose is short-lived, usually to hold temporary data that will soon be discarded, or before it can be placed at a more permanent
memory location. Because it is short-lived, it is usually declared as a
local variable, i.e., a variable with local
scope. There is no formal definition of what makes a variable
temporary, but it is an often-used term in programming.