会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gǒが油メo
博客园
首页
新随笔
联系
订阅
管理
2022年7月14日
&((struct s*)0)->d的相关详解
摘要: #include <stdio.h> struct s{ int a; int b; int c; char d;};void main(){ printf("%d",&((struct s *) 0)->a); //把结构体s的起始位置视为0,返回结构体s的成员a的位置【输出结果为0】 print
阅读全文
posted @ 2022-07-14 11:15 gǒが油メo
阅读(504)
评论(0)
推荐(0)
公告