View Hint | View Answer | Workspace | Discuss In Forum | Report
Uninitialized global variables are not local to a function, their lifetime is throughout program execution and scope is throughout the file.
BSS is Block Started by Symbol.All uninitialzed global variables are stored into this segment,
extern int i = 5; main() ( int i=7; printf("%d",i); }
variable declared with extern keyword has scope throughout the file, it is a global variable.variable declared within the function is local to the function in which it is declared.
printf function prints value of i, which is local to the function in which it is declared.