Variable Scope:
- static variable address can be used outside its scope - static/ variable needs to be initialised using constant - The any local variables hide the globals - No Two storage classes for single variable - typedef static int *i - Error - Two storage classes for i. typedef is also considered as storage class - int const * ptr - pointer -> const int - int * const ptr - constant pointer to int - register variable can not be accessed by dereferencing pointer ------------------------- int fun() { static int num = 16; return num--; } int main() { for (fun(); fun(); fun()) printf ( "%d " , fun()); return 0; } Explanation: Since num is static in fun() , the old value of num is preserved for subsequent functions calls. Also, since the statement return nu...