I sure hope this is just a wrong translation from the original language into English:
Quote:
|
assign each element in the array value to the supplied input value.
|
That would say "none of the array element values are changed; instead they are assigned one at a time to the
input variable [which doesn't exist, but that's another problem] ." The result of course would be that
input would contain the value of the last array element found. But since the problem doesn't specify the *order* in which the array elements are to be traversed, that means you could assign the value of any array element to
input and be correct.
Clearly the sentence SHOULD read:
Quote:
|
assign the value of the argument named str to each element of the array argument named arr1
|