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
You have "int* arr" so "arr[n]" is an int, right? Then your "[M - 1 + 1]" bit is trying to use that int as an array/pointer/vector.