Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!lavaca.uh.edu!jetson.uh.edu!elee6i5 From: elee6i5@jetson.uh.edu Newsgroups: comp.lang.c Subject: Scope of 'static' variables Message-ID: <7744.27500de8@jetson.uh.edu> Date: 26 Nov 90 00:31:04 GMT Organization: University of Houston Lines: 13 When you use 'static' to initialize an array in side a fn, as in static int data[3] = {1,2,3}; the array is initialized before the program runs. Since this can't be allocated on the stack frame, it has to be allocated on the data segment(?). But how is 'scope' preserved for such static variables declared inside a function ? Could any one explain this ,with reference to ix86 architecture? .sundar elee6i5@jetson.uh.edu