Question: What values are printed by the following Algol program if a. x is passed by value and y is passed by value b. x is
What values are printed by the following Algol program if
a. x is passed by value and y is passed by value
b. x is passed by value and y is passed by name
c. x is passed by name and y is passed by value
d. x is passed by name and y is passed by name

begin integer i, j integer array Al1:31 procedure P (x,y)i integer x,yi begin y2; Print (x) i := 3; Print (x); Print (x) Print(y) end; A[1]7 A[211 A[313; end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
