See the following:
| C Standard | __STDC__ |
__STDC_VERSION__ |
|---|---|---|
| C89 | 1 | #undef |
| C90 | 1 | #undef |
| C94 | 1 | 199409L |
| C99 | 1 | 199901L |
| C11 | 1 | 201112L |
| C17 | 1 | 201710L |
| C2X, GNU2x | 1 | strictly larger than 201710L |
| C++ Standard | __STDC__ |
__cplusplus |
__cplusplus_cli |
|---|---|---|---|
| C++98 | 1 | 199711L |
#undef |
| C++11 | 1 | 201103L |
#undef |
| C++14 | 1 | 201402L |
#undef |
| C++17 | 1 | 201703L |
#undef |
| C++2a, GNU++2a | 1 | strictly larger than 201703L |
#undef |
| C++/CLI | #undef |
200406L |