What is the result of the following programs program side-effect(input, output);
var x result: integer : integer;
begin
x : x + 1 ; F : = x;
end
begin
x:= 5
result :=f(x)*f(x)
written (result)
end
The result of the following
programs program side-effect(input, output);
var x result: integer : integer;
begin
x : x + 1 ; F : = x;
end
begin
x:= 5
result :=f(x)*f(x)
written (result)
end
Output:-
5+1=6
Result :=6*6=36.