Hello all,

I have a question in understanding static scoping. i have a this as an example.

Code: C
void fun(void) {
    int a, b, c;     /*definition 1 */
   
    while () {
       int b, c, d;     /*definition 2 */
           …            ← 1
            while () {
                int c, d, e;     /* definition 3 */
                       …        ← 2
                   }
                       …            ← 3
        }
         …            ← 4
    }
for each of the four marked points in this function, list each visible variable, along with the number of definition statement that defines it.

can any one help me understand static scoping using this example?

Thank you in advance.

Last edited by SaswatPadhi; 21Jun2009 at 08:45.. Reason: Code-block