Static Storage Class
Posted on 2004-03-26
I have a simple enquiry. I am going through some C codes and I need to find out what is the use of declaring variables as "static".
Although, I have the definition of the static storage class but I cant appreciate why we need to explicitly declare variables as "static" and what would happen if we don't.
Would appreciate any one who can give examples of a application to illustrate why it is neccessary to declare a variable as "static"