I have a main function that has a char, I am attempting to pass a pointer to that char into a function and have it change it from A to
main
char
A
You want to change the value the pointer points to, not the pointer itself.
Thus you need to dereference the pointer with *pointer:
*pointer
void setChar(char* charToChange) { *charToChange = 'B'; }
If you don't, you just change the local value of charToChange.
charToChange