✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
typedef struct Node
{
int Info;
Node* pNext;
}Node;
typedef struct List
{
Node* pHead;
Node* pTail;
}List;
int ProList(List &l)
{
Node *p;
int a=0;
p = l.pHead;
while(p!=NULL)
{
a++;
p = p->pNext;
}
return a;
}Hỏi hàm ProList thực hiện công việc gì trong danh sách liên kết đơn?