int **pp, *p, a=10, b=20; pp = &p; p = &a; p = &b; printf("%d,%d", *p, **pp)
10 10
10 20
20 10
20 20
pp = &p; pp中储存p的地址,就是指针p的地址
P = &a;p中储存a的地址,就是p指向a,*p=a=10;
p = &b;p中储存b的地址,就是p指向b,*p=b=20;
*pp = p
**pp = *p = b = 20
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题