struct node {
int data;
struct node *next,*prev;
};
void insert(struct node *head,int data){
if(head == NULL){
head = (node *)malloc(sizeof(node));
--- code continues-----
我只想知道和之间的区别
head = (node *)malloc(sizeof(node));
如果struct node *head = malloc(sizeof(struct node));
我**head
作为insert
函数的参数传递它会做什么?