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