Skip to the task
Layout
Back to classic view

You are looking at: Practice test 2. Your place is still lesson 8, task 1: Memory.

CHECKTask 4 of 17 · step 2: Questions 1–6

sizeof of an array and a pointer

int a[10]; int *p = a; What does printf("%zu %zu\n", sizeof a, sizeof p); print on a 64-bit computer?

Stuck?

40 8: the whole array is 10 × 4 bytes, a pointer is 8 bytes. (Topic 8)