In this part, I will compile a simple program called hello_world.c, and describe the compiler how handle it.
The code example as below
#include <studio.h>
int main(){
printf("Hello World !\n");
return 0;
}
Now, we must use gcc compile the example above.
In your terminal, you can type
$ gcc -o "output_fileName" "program_name"
then you will see the output file with a name appear in your directory.
To run your output file,
$ ./"output_fileName"
that './' means a current working directory. Afterward, you will see the result is print the "Hello World !" on your screen.
continue...