What does main() mean? (And what is think it means)

In the 2nd section of the Unreal Course, a challenge asked of me is to describe what I think main() function means. Well, I have no previous C++ knowledge, so I am just guessing.

If you can, explain this function to me if I am right or wrong.

The main() function means what will be displayed to the user, right?

I hope I’m not totally off.

Kind of. Main() is the initial entry point into your application and all c++ apps have one. If you think from a high level how does the computer know what to run when you open a program if you everyone could name that function something unique it wouldn’t. So we all use main() and then the computer knows where to start.

But it may or may not display anything. Just depends on the program.

1 Like

Oh, That makes sense. Thank you for information!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.