10. Linked List/LinkedListBasic-Operations.cpp
void deleteHead(node* &head) {

	if (head == NULL)
	{
		return; // If list is empty.
	}

	node* temp = head;

	head = head->next;
	delete temp;
}
/*--------------------------------- Deletion in a list - Start --------------------------------- */
Deletion in a list - Start
Deletion in a list - Start
void deleteHead(node* &head) {
	if (head == NULL)
	{
		return; 
	}
	node* temp = head;
	head = head->next;
	delete temp;
}
void deleteHead ( node * & head ) { if ( head == NULL ) { return ; } node * temp = head ; head = head -> next ; delete temp ; }
Deletion in a list - Start
Deletion in a list - Start
// If list is empty.