C – External

C – External 2017-06-12T12:14:43+00:00

External Storage class or Global variable

External variables are global to the file in which they are defined. External variables are used only when all functions needed a particular variable. It retains the assigned value within the scope. In the following program variable  i is an external variable.

Example :

Output :

Values of i=1

incrementing, i=2

incrementing, i=3

decrementing, i=2

decrementing, i=1

Prev Next