00:01
In the provided c code, the program uses dynamic scope or electrical scope to resolve variable names.
00:09
Dynamic scope means that the variable's names are resolved based on the order of functions.
00:15
Scopes in the code state.
00:17
Here are the lines that will be printed.
00:21
So, for 1a, in phase c with dynamic scope, the first line printed by scope .c is function.
00:33
C, alpha, equals 130, bravo, equals 270, charlie, equals 50.
01:02
Explanation for this one is that when function c is false, it modifies the global variables alpha, bravo, and charlie, and these modifications are reflected in the print statement.
01:16
For 1b, the second line printed by scope .c is function.
01:26
B, which is alpha, equals 130, bravo, equals 270, and charlie, equals 50.
01:50
Function c and false function c, which modifies the same global variables, are valued, which are consistent with the modifications made by function c...