Tried following code to check what happens when we convert integer pointer to a integer .
#include #include int main() {
uint64_t PointerToInt(void* ptr){ uint64_t* u=(void*)&ptr; return *u; }
if you want to convert pointer to 64 bits unsigned int