define static storage class in c programming the


Define Static Storage Class in C Programming?

The Static declarations have distinct and important uses. This allows the local variable to keep its previous value when the block is reentered. This is in distinguishing to ordinary automatic variables, which drop their value upon block exit and must be initialized. The value of static variables continues until the end of the program.

A static variable can be declared as

static int x;
static float f;

A static variable may be either an external type or an internal type it depending on the place of declaration.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: define static storage class in c programming the
Reference No:- TGS0305050

Expected delivery within 24 Hours