C Program Compilation A simple C program For this lecture, we will learn how to write, compile, and run a very basic C program, and we will discuss the steps that are involved in creating the executable. The following C program prints out the text “Hello world!” to the screen: /* * File: hello.c * ------------- * This simple C program prints out the text "Hello world!". */ #include<stdio.h> int main(void) { printf("Hello world!\n"); } To compile this program, we will be using the gcc compiler in Linux, which stands for “Gnu Compiler Collection”, and it is used as follows: $ gcc hello.c This creates an executable called a.out. To run the executable, you would type $ ./a.out Hello world! If we wanted to create an executable that is named something other than a.out, we would use the -o option in the form $ gcc -o hello hello.c and we could run the hello executable with $ ./hello Hello world! In what fol