Need Assistance?

support@tutorialshub.in

Preprocessor Directives & Macros

#include & Header Guards (#ifndef)

ADVERTISEMENT
C Programming Free Lesson
5 min read
ADVERTISEMENT

Wrap every .h header file in #ifndef MY_HEADER_H ... #define MY_HEADER_H ... #endif so including it multiple times never causes redefinition errors.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you