C – External

C – External 2017-08-06T10:41:22+00:00

External Storage class :

External storage class 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.

C – EXTERNAL STORAGE CLASS EXAMPLE ROGRAM :

Output :

Values of i=1

incrementing, i=2

incrementing, i=3

decrementing, i=2

decrementing, i=1

Prev Next