Header Files
`.h` files share declarations (prototypes, types, macros, `extern` variables) between source files.
Beginner
Put declarations in headers, definitions in .c files. A header should include what it needs and nothing more.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.