社区
C语言
帖子详情
what a confusing express
black_snail
2002-09-25 07:00:12
char far *tab;
(*((unsigned *)&(fp))) = 0;
What is this mean ?
...全文
57
7
打赏
收藏
what a confusing express
char far *tab; (*((unsigned *)&(fp))) = 0; What is this mean ?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
blh
2002-09-25
打赏
举报
回复
将char far *类型的tab先转换成为unsigned *后将指针指向NULL
可以这样看
char far *tab;
(*((unsigned *)&(tab))) = 0;
==〉
char **pc = &tab;
unsigned *pu = (unsigned *)pc;
*pu = 0;
Zark
2002-09-25
打赏
举报
回复
这是为了兼容16位操作系统而用的,你大可不必管它,这的确相当于
tab='\0';
作用是初始化指针.
far 在32位已不用,在16位里的意思是本指针的寻址范围超过了64K,你知道16位的系统中,如果直接寻址,最大只能是64K,对不对?
punpuny
2002-09-25
打赏
举报
回复
相当于tab = 0
icecools
2002-09-25
打赏
举报
回复
&(tab):取得tab指针的地址,就是指向字符指针的指针
(unsigned *)&(tab)):再把这个地址转为指向unsigned的指针
后面是把它置为0
它到底想干什么我不清楚,不会是搞破坏吧?!
black_snail
2002-09-25
打赏
举报
回复
sorry
it should be
(*((unsigned *)&(tab))) = 0;
sandrowjw
2002-09-25
打赏
举报
回复
这——是赋值吗?
这里的far是什么意思?不明白
icecools
2002-09-25
打赏
举报
回复
fp的定义在哪里?
COM
Express
标准
本文主要讲解COM
Express
标准对于市场的引导,COM
Express
标准的意义及其有点,最后介绍COM
Express
标准的相关设计方面的细节。 1. COM
Express
标准 提到COM
Express
标准,这里不得不说明什么是COM标准。 1.1...
2020 年 9 月雅思口语题库
Part1 新题 1. Text message 1) Do you like texting? 2) Do you prefer sending or receiving messages?...4) In what circumstances is making a phone call better than sending a text message? 2. C...
Express
.js Tutorial
From: http://www.hacksparrow.com/
express
-js-tutorial.html As the author said, looking for a good tutorial on
Express
.js to help you get quickly productive in it? You have come to the right place.
英语期中
英语期中 阅读理解20题,总分 值: 20分 Directions : Read the following passages carefully. Each passage is followed by some questions or ... For each of them there are four choices marked A, B, C, a...
pci-e 1x和4x_为什么主板上的PCI
Express
端口大小不同? x16,x8,x4和x1说明
pci-e 1x和4xThe PCI
Express
standard is one of the staples of modern computing, with a slot on more or less every desktop computer made in the last decade. But the nature of the connection is somewhat...
C语言
69,371
社区成员
243,080
社区内容
发帖
与我相关
我的任务
C语言
C语言相关问题讨论
复制链接
扫一扫
分享
社区描述
C语言相关问题讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章