我想将指针向前移动一个字节。
但是我收到了这个错误:
我该如何更简洁地完成后者?
lvalue required as increment operand
使用以下代码:
int **test = 0;
((char *) *test)++;
但是这样也可以:
int **test = 0;
char **t2 = (char **) test;
(*t2)++;
我该如何更简洁地完成后者?