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 second subscript operator is invalid here. You passed a int * pointer into function, which is a 1-d array. So only one subscript operator can be used on it.
Solution : you can pass int ** pointer into funciton