Content deleted Content added
Rearranged, added heading, corrected functional info, researched and corrected/added to static locals (all 6 languages verified by testing) |
→Static local variables: {{seemain|static variable}} |
||
Line 6:
==Static local variables==
{{seemain|static variable}}
A special type of local variable, called a static local, is available in many mainstream languages, including [[C programming language|C]]/[[C plus plus|C++]], [[Visual Basic]] and [[Visual Basic .NET|VB.NET]], which allows a value to be retained from one call of the function to another. In this case, recursive calls to the function also have access to the variable. In all of the above languages, variables are declared as such with the <code>static</code> keyword.
|