“The story of life is quicker than the blink of an eye, the story of love is hello, goodbye” Jimi Hendrix
Let’s write a simple C program that shows the message “Hello World!” on Console/ Terminal of your operating system.
Note: The goal of this section is to just show you how a simple C program look like and what is the process of compiling and running such program. So don’t worries about the code used in this section and just simply follow the instructions for now.
In later sections we will dive deep into the details of the C codes and explain all the parts one by one.
Instructions of running a simple C program:
-
Open a word-editor like Notepad (or any IDE that introduced in
ide-section). -
Copy the code below and paste it into the editor:
#include <stdio.h>
int main() {
printf("Hello World!" );
return 0;
}
-
Now save the file with any name you like but the extension should
be `.c`. For example: hello.c
