C Programming Tutorial – 2 – Hello World !

1- Open Code::Blocks.

2- In left column, expand your “project” (e.g. learningProject) , go to “Sources” folder and click on “main.c”.

you will see some thing like this:

C Programming Tutorial – 1

if “main.c” is empty or contains other code, use following code.

#include <stdio.h>
#include <stdlib.h>

int main()
{
printf(“Hello World!\n”);
return 0;
}

3- click on run as follow.

Run

4- You will see following result.

Hello world ! result