compiling c program

From WebHostingNeeds.com
Jump to: navigation, search
cc program.c

Will compile program.c and create executable file a.out

To execute a.out, run

./a.out

To create executable with name "program", run

cc -o program program.c