Doubt in code part

we took a temporary head pointer c ,but when we return c it is pointing to the tail , how to freturn pointer which points to the head of the new link list ?

hello @chitranshanmol07

no that c is head only.
so there is no need to add separate code for this.

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.