在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
芯片精品文章合集(500篇!)    创芯人才网--重磅上线啦!
查看: 2394|回复: 1

请教高手一个有关C51指针的问题

[复制链接]
发表于 2008-11-10 10:43:19 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
在C51的说明文档里面,有这么这么两段:

Abstract pointer types are described here using code examples with the following variables.
char xdata *px;       /* ptr to xdata */char idata *pi;       /* ptr to idata */char code  *pc;       /* ptr to code  */”与:“Memory-specific pointers always include a memory type specification in the pointer declaration and always refer to a specific memory area. For example:
char data *str;        /* ptr to string in data */int xdata *numtab;     /* ptr to int(s) in xdata */long code *powtab;     /* ptr to long(s) in code */ ”我的问题是这两个的确切的区别是怎么理解的呢?谢谢各位指教!
 楼主| 发表于 2008-11-10 10:47:02 | 显示全部楼层

有点乱,再写一次

C51说明里有这么两段:
Memory-specific pointers always include a memory type specification in the pointer declaration and always refer to a specific memory area. For example:

char data *str;        /* ptr to string in data */
int xdata *numtab;     /* ptr to int(s) in xdata */
long code *powtab;     /* ptr to long(s) in code */



Abstract pointer types are described here using code examples with the following variables.

char xdata *px;       /* ptr to xdata */
char idata *pi;       /* ptr to idata */
char code  *pc;       /* ptr to code  */


我的问题是这两段的确切区别是怎么理解的?谢谢各位的指教!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-4 12:16 , Processed in 0.042395 second(s), 9 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表