Inconsistent lvalue required error when incrementing array variable

后端 未结 3 1267
广开言路
广开言路 2021-01-19 19:54

I am getting \"lvalue required as increment operand\" while doing *++a. Where I am going wrong? I thought it will be equivalent to *(a+1). This beh

3条回答
  •  一向
    一向 (楼主)
    2021-01-19 20:40

    Arrays are not pointers. a is an array; you cannot increment an array.

提交回复
热议问题