#include <inttypes.h>
#include <stdint.h>
printf("%016" PRIxPTR "\n", (uintptr_t)ptr);
but it won’t print the pointer in the implementation defined way (says DEAD:BEEF
for 8086 segmented mode).
#include <inttypes.h>
#include <stdint.h>
printf("%016" PRIxPTR "\n", (uintptr_t)ptr);
but it won’t print the pointer in the implementation defined way (says DEAD:BEEF
for 8086 segmented mode).