Recursive Search in Linked List

Doubt at line 71.
Code: https://ide.codingblocks.com/s/484321

Are you asking why 71 line if statement should come after 75 line if statement? Or anything else?

yes, thats what i’m asking

if our head is equal to null, then we can’t check that head->data == key, that’s why we first have to check whether our head is null or not, if not null then we will check that head->data == key or not.

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.