Get in touch:
01524 851 877
07718 896 553

Conditional Statements Explained

Posted on Jun 11 2008 by Matthew Jakeman

I have often used #if, #ifdef, #if defined() etc as conditional preprocessor directives but haven’t really thought in depth about the differences between them. It was only when someone asked the question in a C channel on freenode that it made me think.

A quick search of google brought me across a nice little explanation. Rather than recycling the information here is the link :

Conditional Compilation (#if, #ifdef, ..#endif)

Quite an interesting little read.

Leave a comment