p=head;
q=head-> next;
while(A)
{
.......................................
}
A is the condition to see list is empty or not, which one is valid?
a) p!=NULL;
b) q!=NULL;
c)(p!=NULL)&&(q!=NULL)
d)(p!=NULL)||(q!=NULL)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
a) p!=NULL;
b) q!=NULL;
c)(p!=NULL)&&(q!=NULL)
d)(p!=NULL)||(q!=NULL)