want to know how to compile and run c program in your ubuntu environment?

Asked by ROOPA

usually ill compile using (cc) command and use ./a.out for output file...but now i dont know how to compile and run in the new environment called ubuntu...so please help me out for my necessary clarifications..

with regards
roopa.k
<email address hidden>

Question information

Language:
English Edit question
Status:
Solved
For:
distcc Edit question
Assignee:
No assignee Edit question
Solved by:
ROOPA
Solved:
Last query:
Last reply:
Revision history for this message
ROOPA (roopa-bioinfo) said :
#1

i want to know how to compile and run 'C' program in ubuntu linux environment...

Revision history for this message
Saša Bodiroža (jazzva) said :
#2

From the terminal you can issue:

gcc -o <output_file_name> <input_file>

For example: gcc -o example example.c. If the command is not found, install gcc package with:

sudo apt-get install gcc