Main() is a user defined function from where execution of C/C++ programs start. It is the designated entry point to a program that is executed in an operating system. There must be at least one main() function in every C++/C program. A main program receive info from another function by writing the command int and then the name of the function and the parameters.