摘要: 在学习关于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(); ... 阅读全文
posted @ 2013-10-18 01:01 AfterSummer 阅读(828) 评论(16) 推荐(0) 编辑