After all, both these statements do the same thing...
int a = 10;
int *b = &a;
printf("%p\n",b);
printf("%08X\n",b);
For example (with different addresses):
0012FEE0
0012FEE0
It is trivial to format the pointer as desired with %x
, so is there some good use of the %p
option?