#include <stdio.h>
int main(){
printf("Hello C Language");
return 0;
}
Execution Flow
Let's attempt to grasp the sequence of the aforementioned program through the diagram provided beneath.
1) The C program's source code undergoes processing by the preprocessor initially. The preprocessor's role is to transform preprocessor directives into their corresponding values, thereby producing an extended source code.
2) The extended source code is submitted to the compiler for compilation, transforming the code into assembly code.
3) The assembly language is forwarded to the assembler for processing, where it is assembled and transformed into object code. Subsequently, a basic .obj file is produced.
4) The object code undergoes linking with libraries like header files by the linker before being transformed into executable code, resulting in the creation of a basic .exe file.
5) The operational code is transferred to the loader, where it is loaded into the memory before being executed. Following execution, the results are directed to the console.