In the end, both of these statements do the same ...
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 , is it good to use the %p parameter?
c ++ c printf
Moeb Mar 03 '10 at 7:55 2010-03-03 07:55
source share