What I think that main() function does

Ok so we see that there is the main() function, then the indentation shows that there are things inside of it. What I think is that it is doing the same thing that Ben showed with #include. It is creating some code that can later be used like that.

main() - would make main() function
{
stuff in here
}

main() - would use whatever is in the main function.

In this case, I think that it is going to change how hard the game is by making a range from 2 → 10.

2 Likes

Yes, that is correct. Also main is the first function to be called in a C++ application.

1 Like

Privacy & Terms