#include
int k=7;void f(int **s){ int *t=&k;*s=t;printf("%d,%d,%d,",k,*t,**s);}main(){ int i=3,*p=&i,**r=&p;f(r);printf("%d,%d,%d\n",i,*p,**r);}为什么答案是7,7,7,3,7,7?#include
int k=7,m=5;void f(int **s){ int *t=&k;s=&t; *s=&m; printf("%d,%d,%d,",k,*t,**s);}main(){ int i=3,*p=&i,**r=&p;f(r);printf("%d,%d,%d\n",i,*p,**r);}答案是7,5,5,3,3,3?为什么两道题的后三个数不一样?一个是3,7,7,另一个是3,3,3,?