Menu Close

How to Run C Program in Code Block ?

Posted in C Programming

Let’s run Hello World program in Code Block

#include <stdio.h>
#include <stdlib.h>
int main()
   printf("Hello world!\n");
   return 0;

open your Code::Block application

1. Create a New Project

2. Choose “Console Application”  – Go

3. Console Application and click Next

4.  NEXT

5.  Select the language for the file C click Next

6. Create a new file and file directory

7. Compiler – choose GNU GCC Compiler, click Finish

8. Input and write C program source code, click save button and click “Build&Run” button.

9. Create executable file


10. Output Results

Related:   The Semicolon (;) is Used to Terminate Statements

Leave a Reply