9_C_Storage_Class_Scope_Linkage (1).pdf

These variables are initialized by default by the

Info icon This preview shows pages 5–9. Sign up to view the full content.

These variables are initialized by default (by the loader) to a zero value appropriate to their declared type They retain last value they were assigned until the program completes (i.e., the values are retained from the completion of one function to the beginning of the next function) Can be declared above all functions in the program, but can also be declared between two functions (this affects scope , though; see below) 5 #include <stdio.h> int main() { ……. }
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.