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/09/

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 09 CMakeLists.txt Code Diff
UNCHANGED This step does not change this file.
add_executable(p09_text text.c)
add_library(p09_safe_input STATIC safe_input.c)
target_include_directories(p09_safe_input PUBLIC .)
add_executable(p09_numbers numbers.c)
target_link_libraries(p09_numbers PRIVATE p09_safe_input)