1st mistake:

pWalk++;

This statement moves pWalk to the next element in an array.  For a linked list, it should be changed to:

pWalk = pWalk->link;

 

            2nd mistake:

                            

After exiting the loop, pWalk becomes NULL, therefore printNode(pwalk->data) is equivalent to

printNode(NULL->data), which is not possible.