Answer to Question #166851 in C++ for Jean Claude

Question #166851

Why Is Method main Declared static?


1
Expert's answer
2021-02-25T14:30:40-0500

It is declared static so that the compiler can call it directly without creating the new object. The main method is the starting point of the compilation of the program. Hence it is compulsory to call main method.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment