Question PSC-ARR-0036
EasyWhat does the following pseudocode print?
Integer a[] = {4, 6, 7, 2}, found = -1
for (each i from 0 to 3)
if (a[i] == 7)
found = i
end if
end for
Print found
- A.
7
- B.
-1
- C.
Sign up free to see the answer and a step-by-step explanation.