Question: 1. (8 points) Consider the C program given below. You wil be asked to determine which variables are visible in a number of different sit


1. (8 points) Consider the C program given below. You wil be asked to determine which variables are visible in a number of different sit uations. In each case, identify each variable by its name and the line number of its declaration. 1 int h, i; 2 void B(int w) 3 int j, k; i = 2*w ; w = w+1 5 8 void A (int x, int y) 9 float i, j; 10 B(h); 11 i=3; 13 } 14 void main) f 15 int a, b; 17 A(a, b); 18 B(h); 19 20 (a) C uses static scoping. Say which identifiers including variables and function names) are visible in the bodies of each of the func- tions: main, A, B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
