C program flow
In this chapter you will learn about the C program flow.C program follows a number of steps during execution. To understand the flow of C program, let's first look at a simple example
#include <stdio.h>
void main () {
printf ("Hello SATT Family");
}
Let's try to understand the flow of the above program through the image below.

C program flow
The C program (source code) is initially sent to the preprocessor. Converts to a preprocessor's expanded source code.
Expanded source code is sent to the compiler, which compiles the code and converts it to assembly code.
The assembly code is sent to the assembly, which will be assembled by the code and converted into the object code.
Object code is sent to the linker, which links to the library such as - header files. Then it was converted into executable code.
Executable code is sent to the loader which loads into memory and code execution. At the end of the execution shows the output on the console.

0 Comments