icp/oer/courses/c-basics/sections/17-preprocessor/01-introduction/program.c

11 lines
250 B
C

#include <stdio.h>
int main(int argc, const char *argv[])
{
// print this, if the compiler defined -DSOMETHING
printf("something was defined\n");
// print this if the compiler did not define -DSOMETHING
printf("something was not defined\n");
}