From c7e04c17fbc7549a460fddbf77515a33d869aa85 Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:10:14 -0600 Subject: [PATCH] vault backup: 2024-10-28 11:10:14 --- education/software development/ECE1400/C.md | 6 ++++++ 1 file changed, 6 insertions(+) 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