How to check the version of gcc in Ubuntu?

To check the GCC version on Ubuntu, you can use the following command:

  1. Open the terminal.
  2. Type the following command in the terminal and press enter:
  3. What is the version of gcc?
  4. This will display the version information of GCC.

Additionally, you can use the following command to view detailed information about GCC:

dpkg -s gcc | grep Version

This will display version information for the installed GCC software package.

bannerAds