%p打印出来的地址,会自动在前面加上0x
int a ,b;
// a = 5;
b = 10;
NSLog(@"%p,%x,%X",&a,&a,&a);
结果如下:
2017-03-23 11:22:10.283 JWDemo[2676:186288] 0x7fff58282a04,58282a04,58282A04
%p打印出来的地址,会自动在前面加上0x
int a ,b;
// a = 5;
b = 10;
NSLog(@"%p,%x,%X",&a,&a,&a);
结果如下:
2017-03-23 11:22:10.283 JWDemo[2676:186288] 0x7fff58282a04,58282a04,58282A04