View Single Post
Old 01-17-2013, 09:49 PM   PM User | #4
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,211
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote