How to Compile and Run C program Using GCC on Ubuntu (Linux)

preview_player
Показать описание
In this video I am going to show How to Compile and Run C program Using GCC on Ubuntu 18.04 LTS Linux. Same instruction will be valid for Linux mint, Debian and other Linux systems
==========================================
Confirm your installation by checking for GCC version by the command:
gcc --version
===========================================
Install build-essential by the command:
sudo apt install build-essential
===========================================
To compile the code within hello.c file, compile and execute it:
$ gcc -o hello hello.c
$ ./hello
Hello, World!
===========================================

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

How to run a C program on Ubuntu?
Compiling/Running C Programs?
Compile and Run simple C Program with gcc Compiler in Ubuntu
Рекомендации по теме
Комментарии
Автор

Thank you for this! Short and to the point without telling us your life history for an hour before getting to the important bits! :-) Thank you again! :-)

HungryGuyStories
Автор

Thank you again for your videos. Always helpful, clear and well presented!

francisparisi
Автор

thanks for this tutorial, i just wrote my first c application but needed to compile it to run it

vgzxlxm
Автор

Thank you so very much! I will need to do this for my computer class. You're amazing!

JamesBrodski
Автор

Thank you for the great video! This is my first step onto Linux path!

lqtx
Автор

For many users on Linux this does not work, but it is easily fixed. The GNU GCC does not have the stdio.h, math.h and stdlib.h files included. They however can be found in the usr/include directory. Just copy those files into whatever directory where you are writing and running you c or c++ programs.

abelincolnparth
Автор

I'm here because I want to familiarise with the terminal and this is really helpful.

IanoNjuguna
Автор

Thank You. It really help me as a beginner.

safrullahsafrullah
Автор

Thank you so much. You save my practical marks. Once again thank you very much.

kishordave
Автор

Thank you so much, it works perfectly.

Diego-nxfj
Автор

thank you sir, it's much better than the courses in my universities. even top universities will teach us in a trashy way

jzfpsuc
Автор

Thank you alot, this works 1:1on newest debian too

nevadainformation
Автор

Thank you, you are better than my professor

mlkwy
Автор

Love u bro thanks a lot ...
I know what benefit I get your this lecture....
I hope very soon your subscribe 2M

gateaspirant
Автор

Best Video ❤....the content is to the point

akankshipriya
Автор

Thank you sir, it works perfectly fine. Was looking for a way. Mnay many thanks.

abhiraj
Автор

Thanks literally saved me from a break down

CryptofreakJasim
Автор

Thank you so much, you saved my night

marcelogalindo
Автор

i am not a programmer, i just want to compile this program i have downloaded from the internet. what it wants to achieve is to booth the pc from an iso image which then can install a 64 bit OS

ep
Автор

Sir i am facing issue while entering sudo at video timing 1:48 it shows unable to locate package essential now wht to do?

shubhamparihar