[prev] 35 [next]

Compiling with gcc

C source code:   prog.c
a.out   (executable program)

To compile a program prog.c, you type the following:

prompt$ gcc prog.c

To run the program, type:

prompt$ ./a.out