What is the default C mode for the current gcc (especially on Ubuntu)?
问题 When I ask to see the current version of cc I get this. $ cc --version cc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ What I would like to know is which of c89, c90, c99 or c11 is being used. 回答1: This is explained in depth in the gcc manual, available (if it's installed) by typing info gcc or online