Question: please answer based on given program. 5. Consider the following program. (25 points) void main() { int xian, boy, carry: * definition 1 void Testl

please answer based on given program.
please answer based on given program. 5. Consider the following program. (25

5. Consider the following program. (25 points) void main() \{ int xian, boy, carry: * definition 1 void Testl 0 t int xian, boy, month, zoo; / definition 2% Test 3 (): void Test20 f int xian, yellow: i definition 3/ while condition xian=50; point 1 y void Test30{ int xian, yellow, zoo; xian - 60; Test 20 ; point 2 Testio; 3 a) Assume using static scope rule. For each of the marked points, list eech visible variable, along with the number of definition statement that defines it as well as xian's value. b) Assume using dynamic scope rule. The execution of the program is in the following unit order. main calls Testl Testl calls Test 3 Test 3 calls Test 2 List each visible variable at point 1 , along with the number of definition statement that defines it as well as xian's value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!