Question: List the local and global variables in this program. Main Declare X As Integer, Y As Integer Set X = 1 Set Y = 2
List the local and global variables in this program.

Main Declare X As Integer, Y As Integer Set X = 1 Set Y = 2 Call Sub(X, Y) Write X Write Y End Program Subprogram Sub(Integer Numl, Integer Num2 As Ref) Declare X As Integer Set Numl = 3 %3! Set Num2 = 4 %3! Set X = 5 Write X End Subprogram
Step by Step Solution
3.32 Rating (158 Votes )
There are 3 Steps involved in it
Local variab... View full answer
Get step-by-step solutions from verified subject matter experts
