C subscripted value is neither array nor pointer nor vector when assigning an array element value

后端 未结 6 770
悲&欢浪女
悲&欢浪女 2020-12-09 09:36

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         


        
6条回答
  •  再見小時候
    2020-12-09 10:24

    The problem is that arr is not (declared as) a 2D array, and you are treating it as if it were 2D.

提交回复
热议问题