Content deleted Content added
→Static local variables: {{seemain|static variable}} |
m links editing |
||
Line 1:
In [[computer science]], a '''local variable''' is a [[variable]] that is given ''local [[
Local variables are special because in most languages they are stored on the [[function stack]] directly. This means that when a [[recursive function]] calls itself, local variables in each instance of the function are given separate memory [[address space]]. Hence variables of this scope can be declared, written to, and read, without any risk of [[Side-effect (computer science)|side-effects]].
|