【发布时间】:2014-06-02 15:17:02
【问题描述】:
在我的代码中写这个*(&x) 与x 有什么不同吗?还是编译器使它们成为相同的东西?
【问题讨论】:
-
什么是
x?不知道你的问题没有任何意义。 -
@DDrmmr
x只是一个变量... -
好吧,在 C 中,我们在标准 If the operand is the result of a unary * operator, neither that operator nor the & operator is evaluated and the result is as if both were omitted 中有以下措辞,据我所知,我们在 C++ 中没有等价的措辞。
标签: c++