What are include guards?
Show answer and explanation
Include guards wrap a header in a unique preprocessor macro so repeated inclusion in one translation unit does not repeat its declarations and definitions. #pragma once is widely supported but non-standard; macro guards remain the portable mechanism.
Include guards wrap a header in a unique preprocessor macro so repeated inclusion in one translation unit does not repeat its declarations and definitions. #pragma once is widely supported but non-standard; macro guards remain the portable mechanism.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.