So as an exercise or a challenge I was asked to post on what I believe the main function does within C++. Now I don’t have much experience with the language, or programming in general, but if I were to guess, the main function is basically the base of the code, and is the thing that interacts with the user. That is my guess, but in reality I have no clue.
1 Like
Hi there and welcome to the community.
You’re actually right. The main function is the first function that executes in a C++ program. Even the Unreal Engine has a main function somewhere that starts everything. Whatever code is inside main will be the first code to execute in your program.
Hope you enjoy the course. Good luck.