代码:
include
main(){
int a = 3 ;
int b = 4 ;
int *p1 ;
int *p2 ;
p1 = &a ;
p2 = &b ;
printf("%d\n",p1);
printf("%d\n",p2);
int c ;
c = p1 - p2 ;
printf("%d\n",c);
}
运行结果:
2293304
2293300
1
Process exited after 0.1434 seconds with return value 2
请按任意键继续. . .
问题:既然p1 = 2293304 . p2 = 2293300 .
c = p1 - p2 ; 那么c就应该是 4 啊。为什么结果是1 呢?这个1表示什么意思?