Which statements is correct regarding main() function in C++?
Which statements is correct regarding main() function in C++?
I. It is a user defined function.
II. It is a pre-defined function.
Show answerHide answer
Correct answer: (A) Only I
Explanation
main() is called by the system, but its body is written by the programmer, so it is treated as a user-defined function, not a library (pre-defined) function.