void fun(int x, int *y){*x *= *y;}
void fun(int *x, int y){*x += y;}
int * fun(int *x, int y){return x += y;}
void fun(int x, int *y){x *= *y;}
x *= *y 是ok的,但是在前面加上*,明显错误
*x *= *y 等价于 x的地址=x的地址×y的地址
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题