82.0k views
5 votes
How does a main program recieve info from a function in c++?

1 Answer

4 votes
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.
User Gmo Quinteros
by
7.9k points