会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rec0rd
博客园
首页
新随笔
联系
订阅
管理
2021年5月13日
记一次char和常量数字比较的坑
摘要: 直接上代码: #include <stdio.h> int main(){ int a = 0xb9b9b9b9; char *ptr = (char *)&a; if(*ptr == 0xb9) printf("haha\n");} #include <stdio.h> int main(){in
阅读全文
posted @ 2021-05-13 17:22 rec0rd
阅读(437)
评论(0)
推荐(0)
公告