设指针变量p指向非空链表中的结点,next是结点的指针域,则判断p所指结点为尾结点前一个结点的逻辑表达式中,正确的是
A、p->next!=NULL&&p->next->next->next==NULL
B、p->next!=NULL&&p->next->next==NULL
C、p->next->next==NULL
D、p->next==NULL
发布时间:2025-05-23 13:25:42
A、p->next!=NULL&&p->next->next->next==NULL
B、p->next!=NULL&&p->next->next==NULL
C、p->next->next==NULL
D、p->next==NULL