Answers for "C function is a linked list empty"

0

C function is a linked list empty

bool IntLinkedList::isEmpty() const
{   //added const for const-correctness, should be added to declaration as well
    return head == nullptr;
}
Posted by: Guest on April-01-2021

Browse Popular Code Answers by Language