示例代码:
#include<string.h> #include<stdio.h> int main() { int a[2]; int b[4]; int *p1 =a; int *p2 =b; printf("%x\t", a-b); printf("%x\t", a-(*p2)); printf("%x\t", (*p1) -(*p2)); return 0; }
结果图示:
时间: 2024-10-25 01:41:13
示例代码:
#include<string.h> #include<stdio.h> int main() { int a[2]; int b[4]; int *p1 =a; int *p2 =b; printf("%x\t", a-b); printf("%x\t", a-(*p2)); printf("%x\t", (*p1) -(*p2)); return 0; }
结果图示: