This is an example of conditional compilation, where for c compilers it prints "c" as output. And for c++ systems it prints "c++" as #ifdef __cplusplus is true for c++ compilers. This is how to write a program which executes different statements based on if it is c or c++. (conditional compilation)