当前位置: 首页 > news >正文

C++(dereference)取值符和(address-of)取址符的翻译说明

C++的两个术语翻译

操作符英文中文C++示例中文翻译
&address-of operator取址符&var1取址var1(var1是变量)
*dereference operator取址符*pi取值pi(pi是指针)

(&)取址符

address-of operator (&),取址操作符,简称为取址符

英文原文:

Address-of operator (&)
The address of a variable can be obtained by preceding the name of a variable with an ampersand sign (&), known as address-of operator.

address-of operator (&)翻译为取址符

(*)取值符

dereference operator (*),取值操作符,简称为取值符

英文原文:

Dereference operator (*)
An interesting property of pointers is that they can be used to access the variable they point to directly. This is done by preceding the pointer name with the dereference operator (*). The operator itself can be read as “value pointed to by”.

其中的"value pointed to by",翻译为“某指针指向的值”,所以dereference operator (*)被译为取值符较为直观,易于使用。

(&)取址符和(*)取值符的中文辨析

有人会说的发音相近,会不会搞混?
通常不会混淆。的拼音同是zhi,但是3声调,是2声调,发音是完全不同的;进入到C++的编程坏境中,&*是完全不同的两个操作,一个是对变量取其内存地址的操作,另外一个是对指针取其变量值的操作,看着代码,说的是取址还是取值操作,当事人完全明了,所以不存在混淆的问题。
C++取值符和取址符的翻译说明

(全文完)

相关文章:

  • MATLAB图像处理:Sobel、Roberts、Canny等边缘检测算子
  • 单调队列与栈
  • 如何取消WPS Excel文件密码
  • 2.14学习总结
  • 【论文阅读】Revisiting the Assumption of Latent Separability for Backdoor Defenses
  • 用 Python 实现 DeepSeek R1 本地化部署
  • Prompt 工程优化方
  • 一区IEEE Trans|特征模态分解FMD,一维数据分解新方法-matlab免费代码
  • 自有证书的rancher集群使用rke部署k8s集群异常
  • C++ STL 容器
  • Visual Studio 编译 onnxruntime 1.14.1 更低版本兼容Win7
  • IOTDB安装部署
  • 【linux】文件与目录命令 - ln
  • 网络安全 | 网络攻击介绍
  • linux 安装nginx
  • python 指定目录位置,查找指定扩展名的文件是否有指定的关键字
  • # 解析Excel文件:处理Excel xlsx file not supported错误 [特殊字符]
  • 【Mastering Vim 2_03】第二章:精通 Vim 高级技巧之:编辑与浏览技巧 + 第三方增强插件的用法
  • DeepSeek从入门到精通:提示词设计的系统化指南
  • 08模拟法 + 技巧 + 数学 + 缓存(D4_缓存)
  • 精美网站建设/如何建立网站 个人
  • 电影网站权重怎么做/windows优化大师有毒吗
  • 怎让做淘宝网站/seo外链技巧
  • 网站怎么做让PC和手机自动识别/网站接广告