张赐荣——一位视障程序员。
赐荣小站: www.prc.cx

張賜榮

张赐荣的技术博客

博客园 首页 新随笔 联系 订阅 管理

C语言多级指针 (指向指针的指针)

#include <stdio.h>
int main(void)
{
int i = 100,j = 200;
int *p;
int **q;
int ***l;
p = &i;
q = &p;
l = &q;
printf("%d\n%d\n%d\n%d\n",***l,**q,*p,i);
**l = &j;
printf("%d\n%d\n%d\n%d\n",***l,**q,*p,j);
return 0;
}
posted on 2022-03-21 15:58  张赐荣  阅读(24)  评论(0编辑  收藏  举报

感谢访问张赐荣的技术分享博客!
博客地址:https://cnblogs.com/netlog/
知乎主页:https://www.zhihu.com/people/tzujung-chang
个人网站:https://prc.cx/