9
How is scope of a variable is implemented by compilers? I mean, when we say static variable, the scope is limited to the block or functions that defined in the same file where the static variable is defined? How is this achieved in machine level or at memory level?
How actually is this restriction achieved?
How is this scoping resolved at program run time?