Passing Pointers to a Function
We’ve seen the benefits of passing variables by reference to a function. It allows you to change their value inside the function. Well, when we pass by reference, this is essentially using pointers – you just didn’t realize it. Therefore you can have instances like: Alternatively I can write it with passing the memory address…