How to install gcc in ubuntu and run first C program

Posted by

How to install gcc in ubuntu and run first C program

This video shows simple steps to install gcc compiler on ubuntu 16.04 and run first C program for beginner.

Here c program demonstrated is simple interest calculator.

  • Following are quick steps to install gcc
    go to terminal
    login as root
    type command : apt-get install gcc  (requires active Internet connection)
    open gedit editor.
    type c program.
    save with .c extension.
    to compile type :
    gcc -o firstprogram firstcprogram.c
    to run program
    type : ./firstprogram
  • Source code link https://goo.gl/PGI2ih
It's only fair to share...Share on FacebookShare on Google+Tweet about this on Twitter