I have a program like this
int main(){
char c;
int i; /* counter */
double d;
return 0;
}
if I want to comment out char, int and double, and just have return uncommented, can I do it? the comment that’s already there stops the comment..
Is there an easy/fast way to comment that out?
Not strictly a comment, but the effect is what you want and it’s easy to revert.
This also scales well to larger code blocks, especially if you have an editor that can match the start and end of the
#if..#endif.