免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: stonemason
打印 上一主题 下一主题

[C] 关于指针的本质,不涉及本质的本质........ [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-11-09 14:14 |显示全部楼层 |倒序浏览

指针的本质是带类型的存储地址,对么?
为了严谨,语境是一个C语言虚拟机器,即它认识C,但不认识汇编、指令什么的

论坛徽章:
0
2 [报告]
发表于 2012-11-09 15:20 |显示全部楼层
来自维基

In philosophy, essence is the attribute or set of attributes that make an entity or substance what it fundamentally is, and which it has by necessity, and without which it loses its identity. Essence is contrasted with accident: a property that the entity or substance has contingently, without which the substance can still retain its identity. The concept originates with Aristotle, who used the Greek expression to ti ên einai, literally 'the what it was to be', or sometimes the shorter phrase to ti esti, literally 'the what it is,' for the same idea. This phrase presented such difficulties for his Latin translators that they coined the word essentia (English "essence" to represent the whole expression. For Aristotle and his scholastic followers the notion of essence is closely linked to that of definition (horismos).[1]

In the history of western thought, essence has often served as a vehicle for doctrines that tend to individuate different forms of existence as well as different identity conditions for objects and properties; in this eminently logical meaning, the concept has given a strong theoretical and common-sense basis to the whole family of logical theories based on the "possible worlds" analogy set up by Leibniz and developed in the intensional logic from Carnap to Kripke, which was later challenged by "extensionalist" philosophers such as Quine.

第二段看不懂

论坛徽章:
0
3 [报告]
发表于 2012-11-09 15:27 |显示全部楼层
xinp123 发表于 2012-11-09 14:38
计算机内部的实际数据,逻辑上只有0和1,指针实际形态也是一串0和1组成,本质上就是数,不过编译器对指针的处理 ...


不要脱离语境

C语言认识0和1,比如位域,但不认识'计算机内部的实际数据'...............

C语言认识存储,因为库函数有malloc()........

也认识地址,因为s[0],s[1],.......

论坛徽章:
0
4 [报告]
发表于 2012-11-11 12:21 |显示全部楼层
linux_c_py_php 发表于 2012-11-10 11:57
指针存地址, 这就是本质.

应该把类型带上吧,不然*(p++)按啥增长?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP