#Concept #Study #CPP ## main() function Every c++ program must have exactly 1 main() function to work. The main() function is the startin point of every program execution, `return 0` indicates successful program execution. Example for a basic main() function: ```c++ int main(){ // code return 0; } program.exe ``` Arguments can be defined and passed to the main() function like this ```c++ int main(int argc, char *argv[]){ // code return 0; } program.exe argument1 argument2 ``` ## 🔗Resources