Array assignment causes unexpected modification to a separate array

Printable View