หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'&' requires l-value
Remarks
The address-of operator (&) must have an l-value as operand. Address of temporary values cannot be taken.
Example
The following example generates C2102:
// C2102.cpp
int func()
{
return 1;
}
int main()
{
int* ptr = &func(); // C2102
}