In page 15 of my lecture slide, there is an example.
int x = 10;
increment_int(x); // can’t change the value of x
increment2_int(&x); // can change the value of x
I don't understand why the first function increment_int(x)
can't change the value of x. Though I don't know what those functions exactly do, I guess they are incrementing some amount to the argument.