gcc 编译警告 warning: value computed is not used [-Wunused-value]
#include <stdio.h>
int fun(int *data)
{
*data ++;
return 0;
}
int main()
{
int a = 3;
fun(&a);
printf("a=%d\n", a);
return 0;
}
*data ++ 相当于*(data ++), func函数中要写成(*data)++ 才对