หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'type': illegal sizeof operand
Remarks
The sizeof operator requires an expression or type name.
Example
The following example generates C2070:
// C2070.cpp
void func() {}
int main() {
int a;
a = sizeof(func); // C2070
}
Possible resolution:
// C2070b.cpp
void func() {}
int main() {
int a;
a = sizeof(a);
}