Browse - Programming Tips - How can I use #ifdef to comment out code?

Date: 2015jun4
Language: C/C++

Q.  How can I use #ifdef to comment out code?

A.  Here's one way:

#if 1 == 0 // The code in here will not be compiled since 1 doesn't equal 0 #endif