1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
int main()
{
int nums[3] = {0, 1, 2};
printf("Array Pointer's address : \t%p \n", &nums);
printf("Array Pointer's value : \t%p \n", nums);
printf("First Element's address : \t%p \n", &nums[0]);
for(int i = 0 ; i < 3 ; i++)
{
// 32bit : casting to (int)
// 64bit : casting to (long long)
printf("%lld\n", (long long)&nums[i]);
}
printf("\n");
}
Enter to Rename, Shift+Enter to Preview