英文:
Not every value has an address, but every variable does, how to understand this sentence?
问题
这些句子的理解方式是什么?
- 哪种值没有地址(不可寻址)?
英文:
One sentence from the book "The Go Programming Language":
> A pointer value is the address of a variable. A pointer is thus the
> location at which a value is stored. Not every value has an address,
> but every variable does. Not every value has an address, but every
> variable does.
How to understand these sentences?
- Which kind of value has no address (is unaddressable)?
答案1
得分: 1
根据我在这里阅读的内容https://utcc.utoronto.ca/~cks/space/blog/programming/GoAddressableValues
返回函数、方法调用和映射的值是不可寻址的。
详细信息请阅读链接。
英文:
From what I read here https://utcc.utoronto.ca/~cks/space/blog/programming/GoAddressableValues
Values from a return function, method call and map are unaddressable.
Read the link for more detail.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论