标签:c语言 数组地址 指针
示例代码:
#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;
}结果图示:

标签:c语言 数组地址 指针
原文地址:http://ljy6011.blog.51cto.com/5812374/1569029