Not understanding line of code

node*temp=head;

in this line does “temp” is the head or temp is the first node

please help it is creating a lot of confusion in my mind

hello @shivamgoel150
temp is a pointer which contains address of first node of linked liked list.

both are same thing na
head contains address of first node of the linked list.