#include #define IS_CPP11(R) (!(R"()"[0])) #define IS_C11(U) (sizeof(U"1"[0]) > 1) int main() { if( sizeof('c') == 1 ) { if( IS_CPP11() ) puts("C++11"); else puts("C++98"); } else { if( 1 == 2//**/2 ) { puts("C90"); } else { if( IS_C11() ) puts("C11"); else puts("C99"); } } return 0; }