【发布时间】:2014-11-18 16:37:27
【问题描述】:
增加一个数组导致需要左值?我的代码在下面请帮助我理解
int main()
{
int a[]={10,20,30,40,50};
a=a+1 ;// i am increment an array address
a++ ;// but here its bad, here why lvalue required ?
}
【问题讨论】:
-
a=a+1// its goodORLY ? -
因为没有分号,没有单独报错?还是只有
a+1?
标签: c arrays post-increment