#include<stdio.h>
#include<malloc.h>
struct Demo{
Demo *next;
Demo *per;
};
void main(void)
{
Demo *pDemo = (Demo *)malloc(sizeof(Demo *));
Demo *pDemo1 = (Demo *)malloc(sizeof(Demo *));
pDemo->next = (Demo *)&pDemo1;
printf("%d\n",pDemo->next->per->next->per->next->next);
return;
}
我单步跟踪也搞不是很清楚,怎么pDemo->next->per会跟pDemo指的地址一样???