diff --git a/education/software development/ECE1400/C.md b/education/software development/ECE1400/C.md index d5589af..cf70c29 100644 --- a/education/software development/ECE1400/C.md +++ b/education/software development/ECE1400/C.md @@ -52,7 +52,13 @@ int arr_size = sizeof(arr) / sizeof(arr[0]); `&` gives you the address of a variable `*` gives you the value in memory that an address points to. +To update the value a pointer points at, you can dereference on the left hand side of the assignment operator: +```c +// Update the value `p` points at to be 7 +*p = 7; +``` +Because of how operator preci works # Formatting specifiers # Standard library ## Formatting specifiers