Suppose the subprogram header is changed to the following: Subprogram Sub(Integer Num1 As Ref,Integer Num2) If code

Question:

Suppose the subprogram header is changed to the following:

Subprogram Sub(Integer Num1 As Ref,Integer Num2)

If code corresponding to the new pseudocode is run, what is the output now?

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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: