64,683
社区成员
发帖
与我相关
我的任务
分享
/*
* array_addr.c
* by mymtom
* 2007-12-23
*/
#include <stdio.h>
#define PRINT_PTR(p) \
(void)printf("%s\t = %0*xH\n", #p, sizeof(void *) << 1, p);
int main(void)
{
int a[10];
PRINT_PTR(a);
PRINT_PTR(&a);
PRINT_PTR(&a[0]);
return 0;
}
a = 00000000287088e0H
&a = 00000000287088e0H
&a[0] = 00000000287088e0H