In java, there is command line option javac -version
to know the version that is installed on computer. I am curious to know about is there any way exist to know the version of gcc or any command line option that can help me?
Remember I am not asking about language standards like C99, C11, C++11 etc. I am asking about compiler version like gcc 4.9.2 etc.
In order to get that information you should type the commands: gcc -v
or gcc --version
. For more details see the man pages for gcc
http://linux.die.net/man/1/gcc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With