Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

11. Consider the following skeletal Cprogram: void funl (void) /*prototype void

ID: 3600357 • Letter: 1

Question

11. Consider the following skeletal Cprogram: void funl (void) /*prototype void fun2 (vo1d) prototype void fun3 (void) /prototype void main) I int a, b, c void funl (vo1d) int b, c, d void fun2 (void) [ int c, d, e void fun3 (void) [ int d, e, t nd assuming that Given the following calling sequences a ing is used, what variables are visible during execution of the last func- tion called? Include with each visible variable the name of the function in which it was defined. a main calls funl; funl calls fun2; fun2 calls fun3. b. main calls tunl; tunl calls tun3 c. main calls tun2; fun2 calls fun3; fun3 calls funl d. main calls tun3; fun3 calls funl. e. main calls tunl; funl calls fun3; fun3 calls fun2. f. main calls tun3; tun3 calls tun2; tun2 calls funl.

Explanation / Answer

Visible variables during the executiong.

a. fun1() : b , c , d , fun2() : c , d , e , fun3() : d , e , f End : b , c , d , e , f b. fun1() : b , c , d , fun3() : d , e , f End : b , c , d , e , f c. fun2() : c , d , e , fun3() : d , e , f fun1() : b , c , d ,End : b , c , d , e , f d. fun3() : d , e , f     fun1() : b , c , d   End : d , e , f ,  b , c e. fun1() : b , c , d , fun3() : d , e , f , fun2() : c , d , e ,End : b , c , d , e , f f. fun3() : d , e , f ,  fun2() : c , d , e , fun1() : b , c , d ,End : b , c , d , e , f
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote