Difference between tail->next != NULL and tail != NULL

In the code https://ide.codingblocks.com/s/8634 in insertAtTail function why can’t we write tail != NULL instead of tail->next != NULL , basically what is the difference in tail->next != NULL and tail != NULL

@princeguptaa
a) in tail !=NULL we are checking whether tail pointer is NULL or not
b) tail->next!=NULL here we are checking whether the pointer that is in next of tail pointer is null of not
clearly both are different things.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.