#include <stdio.h>
main()
{
int a[] ={ 1,2,3,4,5,6,7};
char c[] = {' a','x','h','o','k'};
printf("%d ", (&a[3]-&a[0]));
}
程序的输出是 3。但是,下面获得的值的输出差异是 12。有人可以解释一下歧义。
#include <stdio.h>
main()
{
int a[] ={ 1,2,3,4,5,6,7};
char c[] = {' a','x','h','o','k'};
printf("%d %d ", &a[3],&a[0]);
}