cppforever.com

Preprocessor Directives vs. Comments

Preprocessor directives like #if 0 and #endif conditionally exclude code from compilation.

Reasons to use #if 0 instead of // or /* … */ comments:

Advantages: