int a[] = {3,5,1,2,-3,7,4,8}; a ++;//or ++ a
result:
a[] = {5,1,2,-3,7,4,8,1};分析:相当于数组首地址加1,从第二个元素开始索引,剩余元素补1;
int a[] = {3,5,1,2,-3,7,4,8}; a --;//或 -- a
result:
a[] = {0,3,5,1,2,-3,7,4};分析:首地址减一,即从-1开始,补零;
int a[] = {3,5,1,2,-3,7,4,8}; a ++;//or ++ a
result:
a[] = {5,1,2,-3,7,4,8,1};分析:相当于数组首地址加1,从第二个元素开始索引,剩余元素补1;
int a[] = {3,5,1,2,-3,7,4,8}; a --;//或 -- a
a[] = {0,3,5,1,2,-3,7,4};分析:首地址减一,即从-1开始,补零;