Assigning a new adress to a pointer in a function not possible? [duplicate]
问题 This question already has answers here : change pointer passed by value (6 answers) Closed 4 years ago . I had a programming assignment a while back where I stumbled upon this little problem: when I gave a function a pointer as a parameter, I could not change the address it pointed at. I solved that by returning the new adress I wanted the pointer to point to. But I am still wondering why it's not possible to manipulate a pointer parameter because all memory allocating functions work with a