1. Create the source into a file with any text editor, for example: myprog.c
2. Compile it: gcc -Wall -W -pedantic -g -o myprog myprog.c
3. Run it: ./myprog
Simply any text edittor can be used to write C program. To compile the .c file saved, Linux comes with gcc compiler. In the command line: $ gcc -o outputfile inputfile.c will compile the inputfile.c and create executable outputfile. Other than that there are number of IDEs (i.e. Integrated Development Environment) are available such as Kdevelop, Eclipse etc.
Compile, link and execute them.
Compile and link it into an executable.
Your program is portable if you can compile and execute it on different platforms.
First, install a C-compiler.
You could, if you had conio.h in linux, but you don't have, that's why.
Linux generally comes installed with the free gcc compiler. MacOSX does too. But when you compile a program with gcc, it runs on the platform under which it was compiled. Therefore, programmers on OSX that need to deliver a Linux binary need to use gcc's cross-compiler mode to produce Linux binaries.
In linux: cc -W -Wall -pedantic -g -o average average.c
1. Create your source-file with any text-editor (mcedit myprogram.c, for example).2. Compile it: gcc -g -Wall -W -pedantic -o myprogram myprogram.c3. Fix the errors and warnings, if any4. Run your program: ./myprogram(Note: you should not use linux-9.0 yet, as only linux-2.6.x released).
It depends on the editor.
make is a utility program, compile means translation from source to object module.
C-source program doesn't rum, you have to compile and link it. The executable rums like any other binary program.