Can I run a C program on Ubuntu? - ProProfs Discuss
Advertisement

Can I run a C program on Ubuntu?

Can I run a C program on Ubuntu?

Change Image    Delete

Asked by G. Horace, Last updated: Apr 10, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

H. Jones

H. Jones

H. Jones
H. Jones, Web Content Writer, San Antonio,

Answered Aug 06, 2018

Yes, you can run a C program on Ubuntu. There are five main steps. Step 1: Open a terminal by searching in dash tool or press ctrl+alt+t. Step 2: Open Text Editor (this is necessary to write a C Program on Ubuntu.) Enter gedit (file name).c. Step 3: Next, write the code for the C program, save and close the editor window, return to terminal. Step 4: Compile the saved code. Enter cc (file name.c) or use gcc (file name.c -o (file name).out. Step 5: Run the code and execute the program. Enter ./a.out or use ./(file name).out. Good luck!

upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.