//链表定义typedef struct Node{struct Node* next;int data;}Node;//函数定义Node *function(Node *phead){ Node *first = phead; Node *cur = first->next; first->next=NULL; while (cur){ Node *tmp = cur->next; cur->next = first; first = cur; cur = tmp; } return first; }上述function函数的功能是:
A、遍历链表;
B、查找链表的一个元素;
C、链表逆序;
D、删除链表
发布时间:2024-10-24 19:36:12