How to find my current compiler's standard, like if it is C90, etc
问题 I'm working on a Linux machine. Is there any system command to find the standard followed by the C compiler I'm using? 回答1: This is compiler dependent, I'm supposing you're using GCC. You could check your compiler defined macros using: gcc -dM -E - < /dev/null Check the manual about the flags, specially: __STDC_VERSION__ This macro expands to the C Standard's version number, a long integer constant of the form yyyymmL where yyyy and mm are the year and month of the Standard version. This