I have a pointer to a node in a linked list:
struct node *temp = head.next
If I set this pointer to NULL such as:
temp = NULL;
will this also affect the node I was pointing to? i.e. head.next is now NULL?
I have a pointer to a node in a linked list:
struct node *temp = head.next
If I set this pointer to NULL such as:
temp = NULL;
will this also affect the node I was pointing to? i.e. head.next is now NULL?
will this also affect the node I was pointing to? i.e. head.next is now NULL?
No.
برچسب : نویسنده : استخدام کار backsoft بازدید : 51