Mega Code Archive

 
Categories / C / Code Snippets
 

Simple if else example

#include <stdio.h> #define MAX 10 int main(void) { #if MAX>88 printf("Compiled for array greater than 88.\n"); #else printf("Compiled for small array.\n"); #endif return 0; }