DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CPP
delete a head node in link list
void deleteNode(Node *head) { Node* temp=head; if(head!=NULL) { head=head->next; delete temp; } }
PREVIOUS
NEXT
Tagged:
#delete
#head
#node
#link
#list
ADD COMMENT
Topic
COMMENT
Name
9+9 =
Submit