summaryrefslogtreecommitdiff
path: root/wk5
diff options
context:
space:
mode:
Diffstat (limited to 'wk5')
-rw-r--r--wk5/lect/list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wk5/lect/list.c b/wk5/lect/list.c
index 42268c7..6b343c5 100644
--- a/wk5/lect/list.c
+++ b/wk5/lect/list.c
@@ -13,6 +13,8 @@ int main(void)
list[1] = 2;
list[2] = 3;
+ int *tmp = malloc(4 * sizeof(int));
+
for (int i = 0; i < 3; i++)
{
printf("%i\n", list[i]);