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, I
The first line will give your GCC version (4.7.2)
(Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
When you compile your code, you can specify which C/C++ revision you want to use, by adding -std=c99 or -std=c99 ...
-std=c99
Note gnu89 is used by default.
gnu89