C Programming Language

static storage class or variables

               A variable is declared to be static by prefixing its normal declaration with the keyword static, as in
                static int a;
since the property of a variable may be stated in any order we could also use
                int static a;

              Static variables can be  declared within a function. These variables retain their values from the previous call. i.e., the value that they had before returning from the function.

This is illustrated in the following example.

static storage class
Recursion Home register storage class
c program stats