Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Include Guards | C Programming Tutorial

12.1K views on YouTube

How to use include guards in C to prevent the contents of header files from being included multiple times, potentially causing compiler errors when something is defined multiple times. Include guards are sometimes called macro guards, header guards or file guards, and the issue of including the contents of a header file multiple times is sometimes called the double inclusion problem. Source code: https://github.com/portfoliocourses/c-example-code/tree/main/include_guards. Check out https://www.portfoliocourses.com to build a portfolio that will impress employers!