How do you compile a C program in Unix?

Answer:
Easy. If your program is in file mycode.c, then type:

cc mycode.c -o mycode
./mycode
First answer by NevemTeve. Last edit by NevemTeve. Contributor trust: 172 Question popularity: 2 [recommend question].