Use the loop. Memmove would not work for your array because the data is not contiguous. One of the reasons why i learned to not use multidimensional arrays in C.