Executing a C Program Creating the Program Compilation Linking Execution
Executing a C Program (Cont) Enter the program in a C editor. Save the program (File Save) or F2. Use the extension.c for saving the file. Eg: sample.c Compile the program(Compile Compile) or Alt+F9. Run the program(Run Run) or Ctrl+F9.
Executing C program using UNIX Enter the program in vi editor. Save the file using :wq Use the extension.c for saving the file. Eg: sample.c Compile the program. Eg: cc sample.c (or) gcc sample.c Run the program using a.out.