我正在尝试访问指针结构内的指针地址。
下面是我正在尝试的代码。请帮忙。
struct NODE
{
int Data;
int *PtrInt;
} NODE_1, *PtrNode;
int main(void)
{
NODE_1.Data = 100;
NODE_1.PtrInt = 0x50;
*(NODE_1.PtrInt) = 0x110; // i am able to access pointer from structure here
PtrNode = 0x1000;
PtrNode->Data = 0x500;
PtrNode->PtrInt = 0xff;
*(PtrNode->PtrInt) = 0xcc; // but i am not able to access to pointer from structure
// pointer
}