Saturday, March 6, 2021

Traverse a linked list in C

 for (node *tmp=list; tmp!=NULL; tmp=tmp->next)

{

        printf("%i\n", tmp->number);

}



source: harvard cs50, david malan



No comments:

Post a Comment