Linked_List_Example.c
/*
This function prints out the list by iterating in the
list until the last node by checking if the next pointer
of the last node is NULL or not
*/
This function prints out the list by iterating in the
list until the last node by checking if the next pointer
of the last node is NULL or not
This function prints out the list by iterating in the list until the last node by checking if the next pointer of the last node is NULL or not
void print_list(node_t * head) 
{
	node_t * current = head;
	while (current != NULL) {
		printf("%d\n", current->val);
		current = current->next;
	}
}
void print_list ( node_t * head ) { node_t * current = head ; while ( current != NULL ) { printf ( " \n " , current -> val ) ; current = current -> next ; } }
This function prints out the list by iterating in the
list until the last node by checking if the next pointer
of the last node is NULL or not
This function prints out the list by iterating in the list until the last node by checking if the next pointer of the last node is NULL or not