Node deletion in the linked list

sir in the vedio, you said that the temp is static (local) variable…
so why is it static ??

static means sharable resource. it can be accessed, while deleting head of linked list. Also, temp is a Local variable here, cause it’s only inside the {} brackets.

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.