How to Compile and Run C program and C++ Program Using GCC and G++ on Ubuntu (Linux) / Lubuntu | Dj

Опубликовано: 21 Май 2026
на канале: CodeWithShriekDj
68
1

In this video I am going to show How to Compile and Run C program and C++ Using GCC and G++ on Ubuntu Linux. Same instruction will be valid for Linux mint, Debian and other Linux systems

---
🌎 Find Me Here:
YouTube :    / @codewithshriekdj  
Facebook :   / codewithshriekdj  

---
To Confirm the Installation By Checking Version
for c compiler:
gcc --version

for cpp compiler
g++ --version
---
Install build-essential by the command:
sudo apt-get install build-essential
---
To compile the code within hello.c file, compile and execute it:
for c compiler:
$ gcc -o hello hello.c
$ ./hello
Hello, World!

for cpp compiler:
$ g++ -o hello hello.c
$ ./hello
Hello, World!

---
This video Will Show You How to Install C Compiler Or CPP Compiler In You Linux Machine.

---
#c #ubuntu #cpp #codinglife #codinglife #linux #ubuntulinux