What is the "Main" Purpose?

I have done a tiny dip into C++ prior to this course on codecademy, but I do not remember it being explained much if at all. I was just beginning to do vectors prior to switching over to this course.

Thus I have 2 answers to this topic:

  1. I do not rightly know
  2. I suspect it is the area dedicated to actually running the program on console. Conversely, if the program above did not have the “main()” area attached to it, I suspect it would not be able to run.

Privacy & Terms