77297 Consider the following program [4 Marks] int; procedure pet(x: int) begin x := x - 1 print (x); x := y*x+y; end p
Posted: Sun Jul 03, 2022 12:01 pm
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