Quick Contact

✉
fahimkhan20148@gmail.com
📱
+971 507 286 133
Back to Notes
August 23, 2026
cmemorystorage-classes

Variable Scope

The scope of a variable specifies where it can be accessed in a file. It can be scoped to a block, i.e a function, an if/else statement body, or a loop, or between {} or globally scoped, i.e defined outside of any function and can be accessed anywhere in the file.