From 0870e5ab2bda6c763c56e88ec740650a6c99fbf5 Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:28:59 -0600 Subject: [PATCH] vault backup: 2024-11-01 13:28:59 --- .../software development/ECE1400/Chapter 11 Exercises.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/education/software development/ECE1400/Chapter 11 Exercises.md b/education/software development/ECE1400/Chapter 11 Exercises.md index a65b547..0b9e758 100644 --- a/education/software development/ECE1400/Chapter 11 Exercises.md +++ b/education/software development/ECE1400/Chapter 11 Exercises.md @@ -21,9 +21,10 @@ int i; *sum = 0.0; for (i = 0; i < n; i++) // This wasn't increasing the value - // `sum` points to, it was modifying the address the pointer po + // `sum` points to, it was modifying the address stored in the pointer (*sum) += a[i]; -avg = sum / n; +// Missing dereference operators +*avg = *sum / n; } ``` \ No newline at end of file