How come this works perfectly? Replacing a 2d character array with 1d array.

Printable View