diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-11 03:51:14 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-11 03:51:14 +0000 |
commit | 68bfe1a1c32b981a1403ca5a7168162aba3cd4d3 (patch) | |
tree | b4579fb74c9741786208d5548af1fc2a2077713b /wk5/lect/list2.c | |
parent | 79d68f26bb9058a62e9eb5e1b683d36727f04db8 (diff) |
Wed, Apr 10, 2024, 8:51 PM -07:00
Diffstat (limited to 'wk5/lect/list2.c')
-rw-r--r-- | wk5/lect/list2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wk5/lect/list2.c b/wk5/lect/list2.c index 8d1e88c..de94253 100644 --- a/wk5/lect/list2.c +++ b/wk5/lect/list2.c @@ -33,4 +33,10 @@ int main(int argc, char *argv[]) } // Print whole list + node *ptr = list; + while (ptr != NULL) + { + printf("%i\n", ptr->number); + ptr = ptr->next; + } } |