Flowchart in C

Here, we will see the procedure of making a program in C programming with the help Flowchart like how C program compiles or builds, how C program executes or runs, flow of C program execution, etc. But before starting with Flowchart in C programming, we will have to know that what is Flowchart?


A Flowchart is a visual or symbolic representation of a process or a procedure. Each step in the process is represented by a different symbol and contains a short description of the process step. In simple words, Flowchart is a block diagram, describing an algorithm. It shows the sequence of steps that we need to do to complete a given task.

C code to Flowchart

(hello.c file)
#include <stdio.h>
#include <conio.h>

int main() {
printf("Hello World !!");
return 0;

Flowchart in C programming

C program execution steps : An C program passes from various processes or steps before execution like editing source file, compiling source file, creating executable file, execute c program etc. All the steps of C program execution, we will try to understand with the help of Flowchart.

Flowchart Of C program are given below :


An C program goes through these steps or processes :

1 C Source File : We can create source file of C program using any simple editor like Windows's notepad,Linux's Vim editor etc and save it with .c/.cpp extension like hello.c .

2 Preprocessor : the source code or file of C program is sent to preprocessor first. Now the preprocessor is responsible to convert preprocessor directives (stdio.h, conio.h) into their respective values and modify if needed. The preprocessor expands source code.

3 Compiler : The Expanded source code is sent to C compiler. Now this is the responsibility of the compiler to compile the expanded source code into assembly code or we can say that expanded source code is compiled into assembly code by C compiler.

4 Assembler : The assembly code is sent to assembler. Now assembler is responsible for converting assembly code into object code file like hello.o.

5 Linker : The object code file is sent to linker. Now this is the responsibility of linker to link the object code to the libraries such as header files (stdio.h, conio.h). After that linker converts object code into executable code file like hello.exe that we can execute with double clicks.

6 Loader : The executable code is sent to loader and loader loads executable code into computer's memory (RAM) and then it is executed by computer's CPU. After execution, output is sent to the console screen where we can see output like "Hello World !!".

Next Topic : C Syntax...