for (temp = head; temp; temp = temp->next) { // Do stuff here with temp } #### temp = head; while (temp) { // Do stuff here with temp temp = temp->next; }