Linked list memory managment

                even->next = temp->next;  ------>  1
                even = temp->next;        ------>  2

Is this statement correct? In (1) temp->next value gets assigned to even->next, it means the data is lost from temp->next. So, we can put even = temp->next again.

hello @yogeshcsc20

no , data will not lost.

it depends on exaclty what u r trying to achieve

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.