I have an int* p1 and another string variable string addr containing the address which p1 points to (e.g: "0x555b236df005").
I have another pointer int* p2.
How can I assign p2 to point to the address contained in addr (so that it points to the same location that p1 points to)?
This is a very simplified version of my problem, so doing p2 = p1 is not a solution for it.
Is there a way to do this? If so, how?