Analysis of two-dimensional array and pointer relationship