After function call, argument pointers don't keep their value [duplicate]
问题 This question already has answers here : Changing address contained by pointer using function (5 answers) Closed 1 year ago . I am passing 3 pointers (key, K1Ptr, K2Ptr) as arguments to a function (keyGenerator) but when the function call ends, only the key pointer keeps the value from the function call and the other 2 pointers don't. I have tried a lot of different things, like returning an array with the 2 pointers, or i tried not using pointers and pass 2 arrays instead. Both tries had the