问题描述
在关于C有信誉的来源,下面的信息讨论&放后给予;
运营商:
In a reputable source about C, the following information is given after discussing the &
operator:
...这有点不幸的是,术语的 [地址] 的保持,因为它混淆那些谁不知道什么地址是一下,误导那些谁:想为指针如果他们的地址通常会导致悲伤...
我已经阅读(来自同样有信誉的来源,我会说)总是不加掩饰地提到指针和&放其他材料;
运营商为提供的内存地址。 我很想继续寻找事情的现实,但它是一种在可靠来源形式的不同意的困难。
Other materials I have read (from equally reputable sources, I would say) have always unabashedly referred to pointers and the &
operator as giving memory addresses. I would love to keep searching for the actuality of the matter, but it is kind of difficult when reputable sources KIND OF disagree.
现在我稍微困惑 - 是什么的究竟的是一个指针,那么,如果没有一个内存地址?
Now I am slightly confused--what exactly is a pointer, then, if not a memory address?
P.S。
笔者后来说: ...我将继续使用,但因为要创造一个不同的的[长期]的会更糟术语地址。 EM>
The author later says: ...I will continue to use the term 'address of' though, because to invent a different one [term] would be even worse.
推荐答案
C标准没有定义一个指针是内部和它是如何工作的内部。这是故意的,以便不限制平台,其中C可以被实现为一个已编译或帧间preTED语言的数目
The C standard does not define what a pointer is internally and how it works internally. This is intentional so as not to limit the number of platforms, where C can be implemented as a compiled or interpreted language.
一个指针值可以是某种形式的ID或处理或几个ID的(以86段和偏移打招呼)并不见得真正的内存地址的组合。这个ID可以是任何东西,即使是一个固定大小的文本字符串。非地址重新presentations可以是一个C间preTER特别有用。
A pointer value can be some kind of ID or handle or a combination of several IDs (say hello to x86 segments and offsets) and not necessarily a real memory address. This ID could be anything, even a fixed-size text string. Non-address representations may be especially useful for a C interpreter.
这篇关于究竟什么是C指针如果没有一个内存地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!