Skip to the task
Layout
Back to classic view

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

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

The same .h twice

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

Stuck?

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