gcc latest version install ubuntu code example
Example 1: install gcc in ubuntu
$ sudo apt install build-essential
Example 2: gcc 7 install ubuntu
sudo apt install software-properties-commonsudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt install build-essential
sudo apt install software-properties-commonsudo add-apt-repository ppa:ubuntu-toolchain-r/test