typedef struct node_s{ int item; struct node_s* next; }node_t; node_t* reverse_list(node_t* head) { node_t* n=head; head=NULL; while(n){ _________ } return head; }空白处填入以下哪项能实现该函数的功能?
typedef struct node_s{ int item; struct node_s* next; }node_t; node_t* reverse_list(node_t* head) { node_t* n=head; head=NULL; while(n){ _________ } return head; }空白处填入以下哪项能实现该函数的功能?
node_t* m=head; head=n; head->next=m; n=n->next;
node_t* m=n; n=n->next; m->next=head; head=m;
node_t* m=n->next; n->next=head; n=m; head=n;
head=n->next; head->next=n; n=n->next;
node_t* n=head; head=NULL;
node_t* m=n; n=n->next; m->next=head; head=m;
m,n=head,head=NULL;