Toggle the parent tree of Variable Scope and Lifetime. Learn Software and Hardware Tools Toggle the hierarchy tree under Learn Software and Hardware Tools. Fundamentals of the C Programming Language Toggle the hierarchy tree under Fundamentals of the C Programming Language. Multi-File Projects and Storage Class Specifiers Toggle the hierarchy tree under Multi-File Projects and Storage Class Specifiers. Variable Scope and Lifetime Toggle the hierarchy tree under Variable Scope and Lifetime.
The scope and lifetime of a variable depend on its storage class:Automatic Variables Static Variables External Variables Register Variables Scope refers to where in a program a variable may be accessed. Lifetime refers to how long a variable will exist or retain its value.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.