Loading formats...
How to Compile and Run a C Program Using GCC on Ubuntu 18.04 LTS?
Description
How to Compile and Run a C Program Using GCC on Ubuntu 18.04 LTS?
Step 1: To check whether you have Gcc installed or not on your ubuntu, Open 'Terminal.'
Step 2: Type the command below, and then hit enter.
gcc --version
If you get version info of gcc that means you Gcc installed. if you get error like that 'command not found' or 'command not recognized' that means you don't have gcc installed.
Type the command below to install Gcc, and then hit Enter:-
sudo apt install build-essential
follow the instructions on terminal, and install it.
Step 3: Now, go to the Directory where you have your C program file. After that type the command below to compile it, and hit enter.
gcc your_filename -o filename_that_you_want_to_give
Step 4: To run it, type the command below, and then hit enter.
./filename_that_you_have_given
It's done.
Thanks for watching, please like and subscribe
==============================================
https://www.facebook.com/HowtoTutorialsByAmit/
Step 1: To check whether you have Gcc installed or not on your ubuntu, Open 'Terminal.'
Step 2: Type the command below, and then hit enter.
gcc --version
If you get version info of gcc that means you Gcc installed. if you get error like that 'command not found' or 'command not recognized' that means you don't have gcc installed.
Type the command below to install Gcc, and then hit Enter:-
sudo apt install build-essential
follow the instructions on terminal, and install it.
Step 3: Now, go to the Directory where you have your C program file. After that type the command below to compile it, and hit enter.
gcc your_filename -o filename_that_you_want_to_give
Step 4: To run it, type the command below, and then hit enter.
./filename_that_you_have_given
It's done.
Thanks for watching, please like and subscribe
==============================================
https://www.facebook.com/HowtoTutorialsByAmit/
Discover more
Keywords & tags
More from this user
01:50
How to Enable/Disable Turn Wi-Fi On/Off Automatically on Samsung Galaxy S24 Ultra?
TechTips
01:08
How to Turn On/Off Wi-Fi Detect Suspicious Networks on Samsung Galaxy S24 Ultra?
TechTips
01:37
How to Delete/Forget a Saved Wi-Fi Network on Samsung Galaxy S24 Ultra?
TechTips
00:57
How to Enable/Disable Vibrate When Call Ends in Phone App on Samsung Galaxy S24 Ultra?
TechTips
01:02
How to Turn On/Off Answer Using Speaker on Samsung Galaxy S24 Ultra?
TechTips
00:53
How to Enable/Disable Block Calls From Unknown Numbers on Samsung Galaxy S24 Ultra?
TechTips
Related videos
05:19
How to Compile and Run a C++ Program Using g++ on Ubuntu 18.04 LTS?
TechTips
04:01
How to Install Node.js and NPM on Ubuntu 18.04 LTS Using Ubuntu's Official Repository?
TechTips
01:07
15 Demonstration of FM Transmission using USB3.0-to-VGA Adaptor on Ubuntu 18.04 LTS
Ruby and Arnav
03:58
How to Find Your Public IP Address via Terminal on Ubuntu 18.04 LTS Using Curl?
TechTips
03:08
How to Extract a tar.gz File Using Terminal on Ubuntu 18.04 LTS?
TechTips
03:01
How to Find which Desktop Environment you are Using in Ubuntu 18.04 LTS?
TechTips