Determining the Default C Standard in g
When compiling C code using g , the default C standard is automatically selected by the compiler. This default standard varies depending on the g version used. If a specific C standard is not explicitly specified during compilation, g will use its internal default.
To determine the default C standard used by g , follow these steps:
g++ -dM -E -x c++ /dev/null | grep -F __cplusplus
For example, if your g version is 4.8.4, you will get the following output:
#define __cplusplus 199711L
This output indicates that the default C standard used by g 4.8.4 is C 11.
Additional Considerations
The above is the detailed content of How do I determine the default C standard used by g ?. For more information, please follow other related articles on the PHP Chinese website!