I'm getting a little bit overwhelmed with pointers.
Lets say I have an array of chars
char arrayOfChars[50];
and I want to pass it to some function that will manipulate it.
The way I pass it would be by reference:
someFunction(char &arrayToManipulate) {}
but I also often see this:
someFunction(char *arrayToManipulate) {}
What's the difference between the two,
And bonus question; is there any problem if in the parameter list of someFunction, I name the local variable by the same name? I.e.
someFunction(char &arrayOfChars) {}
Many thanks.