Today the idea popped up on how to write a Simple “Hello World” Application using C Programming Language, as I just wanted to see how it works.
Requirements:
You will need the gcc
package to compile the program:
1
|
|
1
|
|
Writing our first Program:
We will create a app that just prints out a static defined value:
Create any file with a .c
extension, in my case it will be app.c
:
1 2 3 4 5 6 |
|
Now compile app.c
with gcc
and specify the output path of your app with -o <app-name>
1
|
|
Testing our App:
You will see that there is a executable file with the name that you have specified as the output:
1 2 |
|
Really basic, but quite cool.