How to find my current compiler's standard, like if it is C90, etc

前端 未结 5 1733
梦谈多话
梦谈多话 2020-12-13 09:29

I\'m working on a Linux machine. Is there any system command to find the standard followed by the C compiler I\'m using?

5条回答
  •  青春惊慌失措
    2020-12-13 10:10

    If your C compiler is gcc, you can use the -std option to specify which C standard to follow. The default is gnu89. There's no general system command to determine the standard for any given compiler. You'll need to check the documentation.

提交回复
热议问题