How to compile C program with commands

https:/‮‬/www.lautturi.com
How to compile C program with commands

When writing programs, we usually configure the IDE and use the IDE buttons to compile.
In linux, you can compile using the command line.

The default output file name is a.out

$ gcc hello.c
$ ./a.out

We can use - o to specify the output file name

$ gcc hello.c -o hello
$ ./hello
Created Time:2017-08-28 14:52:50  Author:lautturi