摘要:
在学习关于C语言指针的时候,发现这样一个问题,代码如下:#include#include#includestruct A{ int a; char b;};struct B{ struct A *n;};struct B *new_B(){ struct A t = { 100, 'c'}; struct B *p; p = (struct B *) malloc(sizeof(struct B)); p->n = &t; return p;}int main(void) { struct B *p; p = new_B(); ... 阅读全文