✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Elem *tmp = first->next;
delete first;
first = tmp;
if (first == NULL)
last = NULL;
else
first->prev = NULL;