title: How can I know that which version of gcc compiler I am using?
body: <p>In java, there is command line option <code>javac -version</code> 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?</p>
  
  <p>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.</p>