while (getchar() != '\n') ;
while ((ch = getchar()) == ' ') ;
Visit nodes in a linked list, using a pointer variable p to keep track of the “current” node.
p
for (p = first; p != NULL; p = p->next)