// Not executable. // Examples of C storage types // global variable float PI = 3.14; // static global variable (private to file) static int my_magic_number = 10; int get_times_called() { // static local variable (private to function body) static int count = 0; count += 1; return count; } int factorial_5() { // local variable int sofar = 1; for (int i=0; i<5; i++) { // local variable int t = 5-i; sofar *= t; } // t deallocated here return sofar; } // sofar deallocated here