Hello,
I'm trying to understand linked list but i'm having problems with the way my text describes one aspect.
This is the problem i'm having:
The text says:
//If there are no nodes in the list make newNode the first node
and then test it like this:
head =NULL;
if (!head)
head = newNode;
The problem i'm having is this seems to be saying if head is NOT = null then execute, but the text says this statement SHOULD be executed which implies that it is NULL.
The text is from starting out with c++ tony gaddis (Linked List)
Any help is appreciated.
Art