summaryrefslogtreecommitdiff
path: root/wk4/lect/memory.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-27 21:02:25 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-27 21:02:25 +0000
commit6f28227d5b2f3770470892b4991c4dc6ebb064c1 (patch)
tree299cdb94cb950d672db5f4fda194faebed00a82c /wk4/lect/memory.c
parentb89fee4825ada08047e8af03e7e3e2cab18b5045 (diff)
Tue, Feb 27, 2024, 1:02 PM -08:00
Diffstat (limited to 'wk4/lect/memory.c')
-rw-r--r--wk4/lect/memory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wk4/lect/memory.c b/wk4/lect/memory.c
index c4e6de0..26cff19 100644
--- a/wk4/lect/memory.c
+++ b/wk4/lect/memory.c
@@ -7,7 +7,7 @@
int main(void)
{
int *x = malloc(3 *sizeof(int));
- x[1] = 72;
- x[2] = 73;
- x[3] = 33;
+ x[0] = 72;
+ x[1] = 73;
+ x[2] = 33;
}