Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. sizeof(arr) = 8, arr is just a pointer
  2. sizeof(arr[0]) = 3 * sizeof(int)
  3. &arr is undefined because we don't know where arr's adress is saved (just where arr begins)
  4. arr is 400, because arr is a pointer whose address we know.
  5. arr[0] because arr is a pointer whose address we know
  6. arr[7][3] is undefined because we don't know where arr[7] is pointing at
  7. &arr[7][3] - &arr[0][0] - there are 24 cells between them
  8. &arr[8] - arr is the important thing is that &arr[0]=arr, therefore &arr[8]=arr+8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement