summaryrefslogtreecommitdiff
path: root/wk5
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-11 03:40:55 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-11 03:40:55 +0000
commit6473ab2343eadfe8625832a8c384995767f06980 (patch)
treecdb348e770fdafa8110add57e9d78da1704c9047 /wk5
parent421e513b8c0b4e6e8e90837041bd86dc8e46ff20 (diff)
Wed, Apr 10, 2024, 8:40 PM -07:00
Diffstat (limited to 'wk5')
-rw-r--r--wk5/lect/temp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/wk5/lect/temp.c b/wk5/lect/temp.c
index dcae6d2..6c83fc4 100644
--- a/wk5/lect/temp.c
+++ b/wk5/lect/temp.c
@@ -14,8 +14,13 @@ typedef struct node
int main(void)
{
+ node *n = malloc(sizeof(node));
n->number = 1;
n->next = NULL;
list = n;
- // this makes
+
+ node *n = malloc(sizeof(node));
+ n->number = 2;
+ n->next = list;
+
}