Not sure why values are changing when I'm passing arrays and array sizes

Printable View