Hapus simpul kepala dalam daftar tautan
void deleteNode(Node *head)
{
Node* temp=head;
if(head!=NULL)
{
head=head->next;
delete temp;
}
}
Tarique