My 2 Cents The Main () Function

Swati Mishra

Content Writer
The execution of program always start from the main () function. When the main () function complete execution, it needs to notify the operating system about its completion. That’s why we use the last statement in main () is return 0;

Void main ()



White Belt
You are right, main function is the predefined function.We can see the program code of main function in the object code file. Object file produce after the program compilation. Main function is also known as self driving function and program driving function.