From 18f23b743e3d78e1d842cd5e864d5d0643bc351a Mon Sep 17 00:00:00 2001 From: Patrick Coxall Date: Fri, 1 Dec 2023 13:13:31 -0500 Subject: [PATCH] update --- code_examples/4-Functions/6-By_Value_or_By_Reference/C/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_examples/4-Functions/6-By_Value_or_By_Reference/C/main.c b/code_examples/4-Functions/6-By_Value_or_By_Reference/C/main.c index 26062088..821b5654 100644 --- a/code_examples/4-Functions/6-By_Value_or_By_Reference/C/main.c +++ b/code_examples/4-Functions/6-By_Value_or_By_Reference/C/main.c @@ -8,7 +8,7 @@ void addOne(int *someNumber) { // this function adds one by reference - someNumber = someNumber + 1; + (*someNumber)++; } int main() {