summaryrefslogtreecommitdiff
path: root/wk4
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-27 20:59:48 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-27 20:59:48 +0000
commitb89fee4825ada08047e8af03e7e3e2cab18b5045 (patch)
tree7f17d5f4605e09e102762aeee70d201d75e75185 /wk4
parent4d705c190b3ae9f1bc9dc0f2892cdfdba72719a2 (diff)
Tue, Feb 27, 2024, 12:59 PM -08:00
Diffstat (limited to 'wk4')
-rw-r--r--wk4/lect/memory.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/wk4/lect/memory.c b/wk4/lect/memory.c
new file mode 100644
index 0000000..c4e6de0
--- /dev/null
+++ b/wk4/lect/memory.c
@@ -0,0 +1,13 @@
+#include <cs50.h>
+#include <ctype.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+int main(void)
+{
+ int *x = malloc(3 *sizeof(int));
+ x[1] = 72;
+ x[2] = 73;
+ x[3] = 33;
+}