Sorry for asking the already answered question, I am a newbie to C and don\'t understand the solutions. Here is my function
int rotateArr(int *arr) { int
The problem is that arr is not (declared as) a 2D array, and you are treating it as if it were 2D.
arr