Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int number;
- int arr2[2][2][2] = {1,2,3,4,5,6,7,8};
- printf("&arr2[0][0][0] is %p\n",&arr2[0][0][0]); //0028FF00
- printf("arr2[0][0] is %p\n",arr2[0][0]); //0028FF00
- printf("&arr2[0][0] is %p\n",&arr2[0][0]); //0028FF00
- /*int zippo[4][2] = { {1,2}, {11,12}, {21,22}, {31,32} };
- //int arr[4][2] = {{1,2},{3,4},{5,6},{7,8}};
- printf("arr[0] -%d,&arr[0]-%p\n",arr[0],&arr[0]);
- printf("zippo[%d] is %d, it's address is %p\n",0,zippo[0],&zippo[0]);
- printf("zippo[%d][%d] is %d, it's address is %p\n",0,0,zippo[0][0],&zippo[0][0]);
- printf("zippo[%d] is %p\n",0,zippo[0]);
- printf("zippo[%d][%d] is %d, it's address is %p\n",0,1,zippo[0][1],&zippo[0][1]);*/
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement