Question 10188 – Computer-Organization
March 2, 2024OOPS
March 2, 2024Question 11528 – Arrays
What is the output of the following Pascal program segment?
{c: array [1..10] of integer;
m, n, temp : integer;
procedure r (k, j : integer)
begin
k :=k+1; j :=j+2;
end r;
…
m :5; n := 3;
r(m, n)
temp;=m; m:=n; n:temp;
write m, n;
}
Correct Answer: E
3, 5
5, 3
Either 3, 5 or 5, 3
Unpredictable
Answer the above question with explanation
Subscribe
Login
0 Comments