Skip to the task
Layout
Back to classic view

You are looking ahead. Your place is still task 1: About.

CHECKTask 4 of 17 · step 2: Questions 1–6sizeof of an array and a pointer
sizeof of an array and a pointer in practice/06/

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

Details & hint

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

practice 06 CMakeLists.txt Code Diff
UNCHANGED This step does not change this file.
add_executable(p06_temperatures main.c)
target_link_libraries(p06_temperatures PRIVATE course_input)
add_executable(p06_search search.c)
add_executable(p06_hall hall.c)