C introduction- ‘Hello World !!’ | C Language


The C programming language is a general purpose programming language, which relates closely to the way machines works. Understanding how computer memory works in an important aspects of the C programming language. Although C can be considered as ‘hard to learn‘, C is in fact a very simple language with a very powerful capabilities.

C is a very common language, and it and it is the language of many applications such as windows, the pythons interpreter, Git and many more.

C is a compiled language – which means that in order to run it, the compiler (for example, GCC or Visual Studio) must take the code that we wrote, process it, and then create an executable file. This file can then be executed, and will do what we intended for the program to do.

So, hope you guys know now ” what is C ? “, In this tutorial i’ll be teaching you, the basics of C language and we’ll code our first program -” Hello World !! “.

Our First C Program

Every C program uses libraries, which give the ability to execute necessary functions. For example, the most basic function called printf which prints to the screen, is defined in the stdio.h header file.

include <stdio.h>

To add the ability to run the printf command to our program, we must add the following include directive to our first line of the code:

The second part of the code is the actual code which we are going to write. The first code which will run will always reside in the main function.

 int main() {
… our code goes here

The int keyword indicates that the function main will return an integer – a simple number. The number which will be returned by the function indicates whether the program that we wrote worked correctly. If we want to say that our code was run successfully, we will return the number 0. A number greater than 0 will mean that the program that we wrote failed.

For this tutorial, we will return 0 to indicate that our program was successful:

return 0;

“Notice that every line in C must end with a semicolon, so that the compiler knows that a new line has started.”

Last but not least, we will need to call the function printf to print our sentence. After following the codes and tutorial properly you will be able to code a Hello World output.

Your final code to print ” Hello World !! “will look like this :

int main() {
printf("Hello World!");
return 0;
Recommend video from our Youtube channel.