explain the storage class static the storage


Explain the Storage Class Static

The Storage Class Static : Static declarations have two important and distinct uses. The more elementary use is to allow a local variable to retain its previous value when the block is reentered. This is in contrast to ordinary automatic variables, which lose their value upon block exit and must be reinitialized.

 

Example : void function()

{

static int i; Statements;

}

 

 

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: explain the storage class static the storage
Reference No:- TGS0305420

Expected delivery within 24 Hours