C program to demonstrate example of global and local scope
This program will demonstrate the example of global and local scope in c programming language. These scopes are used according to the requirement.
Variable and function which are declared in the global scope can be accessed anywhere in the program, while variable and functions which are declared within the local scope can be accessed in the same block (scope).
Use of Global and Local Scope (Blocks) in c
Outputneed an explanation for this answer? contact us directly to get an explanation for this answer