Skip to the task
Layout
Back to classic view

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

CHECKTask 2 of 17 · step 2: Questions 1–6The same .h twice
The same .h twice in practice/03/

daytime.h without an #ifndef guard defines typedef struct {...} Daytime; lecture.h includes it, main.c includes both. What happens?

Details & hint

Stuck? conflicting types for 'Daytime': the same .h twice in the same .c. The #ifndef / #define / #endif guard. (Topic 7)

practice 03 CMakeLists.txt Code Diff
UNCHANGED This step does not change this file.
add_executable(p03_grades main.c)
target_link_libraries(p03_grades PRIVATE course_input)