Question: 3. Consider the following C program: void fun(void) { int a, b, c; 010 020 030 040 050 060 070 080 090 100 110 120
3. Consider the following C program: void fun(void) { int a, b, c; 010 020 030 040 050 060 070 080 090 100 110 120 130 140 while (...) { int b, c, d; // POSITION 1 while (...) { int c, d, e; // POSITION 2 } // POSITION 3 } // POSITION 4 } a) List all variables visible at POSITION 1 (line 060) along with the line numbers where they are declared, assuming static scoping is used. b) List all variables visible at POSITION 2 (line 090) along with the line numbers where they are declared, assuming static scoping is used. c) List all variables visible at POSITION 3 (line 110) along with the line numbers where they are declared, assuming static scoping is used. d) List all variables visible at POSITION 4 (line 130) along with the line numbers where they are declared, assuming static scoping is used
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
