Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Coxall authored Dec 1, 2023
1 parent 047ad0b commit 18f23b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

void addOne(int *someNumber) {
// this function adds one by reference
someNumber = someNumber + 1;
(*someNumber)++;
}

int main() {
Expand Down

0 comments on commit 18f23b7

Please sign in to comment.