struct node
{
int a;
struct node *next;
};
typedef struct node s_node;
typedef s_node * link;
link pointer = NULL;
link head = NULL;
pointer = head;
pointer = (link)malloc(sizeof(s_node));
我想请问 执行上面这一小段程序时 给pointer 分配了内存 那么是不是相当于给head分配了内存啊