【发布时间】:2014-02-28 03:52:04
【问题描述】:
我想将指针向前移动一个字节。 但我得到这个错误:
lvalue required as increment operand
使用此代码:
int **test = 0;
((char *) *test)++;
不过这样就好了:
int **test = 0;
char **t2 = (char **) test;
(*t2)++;
如何简洁地做到后者?
【问题讨论】:
标签: c pointers pointer-arithmetic