int *ptr = &var; printf("%p", ptr);
void *ptr= &var
cout << reinterpret_cast<void *>(p) << endl;
cout << "Pointer value: " << hex << ptr << endl;
printf
hex
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)