Page 1 of 1

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
by answerhappygod
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
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 14 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