What my understanding of main() is

Just registered for the course and was asked to answer what my understanding of main() is. From what i have seen so far, it is essentially the start point of our code as the compiler will essentially look towards what’s in main() and compile it.

1 Like

Hi and welcome to the community.

You’re almost right. The main() is where the code starts to execute. The compiler doesn’t start compiling the code here but it does make it the first function to be called.

I hope this clarifies things.

Good luck with the course and hope you enjoy it.

1 Like

Privacy & Terms