Skip to main content

How to run a C/C++ program in Linux mint/ubantu/other

Run A C/C++ program in mint / ubantu / other linux



Hello friends, here we are going to run a c program file in linux mint.

Here is some step which return below the video ,
You can simply watch the video or follow the step ....

VIDEO



Steps for Run C program file in terminal

  1. first open software manager/ store and download the "G++" or you can also " apt get" for install g++.
  2. Open any editor and make a c/c++ file and save it on any location.
  3. Now open terminal and go to your file location (lets say it "Desktop" then go to Desktop by  cd Desktop command).
  4. Now Type g++ filename.c -o outputfilename then press enter. (filename = your file name  and  outputfilename = what output name you want)

Comments