I think it’s the start of the program where all the code would start. Maybe its a method like in c#,
1 Like
You’re right, it is where the program starts. It’s a little different than C# however. When you create a console application in C#, the main method has to be within a class and is a static method. In C++ however, the language can create methods outside of a class, which is usually why we use the labels of functions and methods to differentiate between the two, functions being the way main is declared.
C++ inherits this approach from C which was a procedural only language and since there were no classes, functions all existed this way.
Thanks for the reply, and it is much clearer now.
1 Like
I think the main() [function] is a place where all the programs will execute.