Programming Tips - C/C++: How to comment out code that already has /* comments in it */

Date: 2015jun4 Update: 2026oct5 Language: C/C++ Q. C/C++: How to comment out code that already has /* comments in it */ A. Here's one way:
#if 1 == 0 // The code in here will not be compiled since 1 doesn't equal 0 #endif
Full Example use. Lets say you have:
int main() { obsoleteFunction(); /* Do not call this * function because its obsolete */ }
You can comment it out with:
int main() { #if 1 == 0 obsoleteFunction(); /* Do not call this * function because its obsolete */ #endif }