Compilation Process of C Programs

What is compilation?

What is a compiler

What is GCC?

The phases of the compilation in c

Link: https://www.javatpoint.com/compilation-process-in-c
#include <stdio.h>/**
*main - Print "Hello Lex"
*
*Return: 0 successful exit
*/
int main(void)
{
printf("Hello Lex\n");
return (0);
}

1) Preprocessing

2) Compiling

3) Assembling

4) Linking

ALL IN ONE STEP!

$ gcc -o lex lex.c

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store