summaryrefslogtreecommitdiff
path: root/wk5/lect/temp.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-11 03:46:37 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-11 03:46:37 +0000
commit24bbbed75b994e4edd6997499738758a0f285677 (patch)
treeb79d99215bb13c666d1982e5e964df51e9c3792a /wk5/lect/temp.c
parent6473ab2343eadfe8625832a8c384995767f06980 (diff)
Wed, Apr 10, 2024, 8:46 PM -07:00
Diffstat (limited to 'wk5/lect/temp.c')
-rw-r--r--wk5/lect/temp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wk5/lect/temp.c b/wk5/lect/temp.c
index 6c83fc4..b5f75c7 100644
--- a/wk5/lect/temp.c
+++ b/wk5/lect/temp.c
@@ -22,5 +22,7 @@ int main(void)
node *n = malloc(sizeof(node));
n->number = 2;
n->next = list;
+ list = n;
+ // This creates a linked list where 2 points to 1
}