- #include <stdio.h>
- int main(int argc, const char * argv[]) {
-
- int a[4]={1,2,3,4};
- printf("a的地址%p\n",&a);
- printf("a的地址%p\n",a);
- printf("a[0]的地址%p\n",&a[0]);
- printf("a[0]的地址%p\n",a[0]);
- // insert code here...
- return 0;
- }
- a的地址0x7fff5fbff7c0
- a的地址0x7fff5fbff7c0
- a[0]的地址0x7fff5fbff7c0
- a[0]的地址[color=Red]0x1[/color]
- Hello, World!
- Program ended with exit code: 0
复制代码 |
|