Scope of an identifier is the part of the program where the identifier may directly be accessible. In C, all identifiers are lexically (or statically) scoped. C scope rules can be covered under following two categories. Global Scope: Can be accessed anywhere in a program. To restrict access to current file only, global variables can […]
↧