Story cover for How the main() function is called in the C/C++ language? by codiens
How the main() function is called in the C/C++ language?
  • WpView
    Reads 3
  • WpVote
    Votes 0
  • WpPart
    Parts 1
  • WpHistory
    Time <5 mins
  • WpView
    Reads 3
  • WpVote
    Votes 0
  • WpPart
    Parts 1
  • WpHistory
    Time <5 mins
Ongoing, First published Aug 12, 2021
The main() function or complete C program is treated as a normal process/procedure. 

All C language programs have a main() function. It's the core of every program. It's required. 

When we invoke the compiler to compile the source code, it starts compilation from the main() function and returns the assembly code. We can get assembly code by executing this command gcc -S -o filename.asm filename.c or gcc -S filename.c in your terminal. Read more.
 

https://codiens.com/blog/c-main-function/
All Rights Reserved