77297 Consider The Following Program 4 Marks Int Procedure Pet X Int Begin X X 1 Print X X Y X Y End P 1 (18.66 KiB) Viewed 13 times
77297 Consider the following program [4 Marks] int; procedure pet(x: int) begin x := x - 1 print (x); x := y*x+y; end
program Main begin y:= 4; pet(y); print(y); end What will be printed at the call to the print statement, if the call to the procedure pet is by (a) Value-result (b) reference
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!