Question Locked

main() is predefined or user defined function?

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Just want to know if the main() is user defined or predefined function in C/C++

2 replies

by tony hopkinson

Most IDEs create one for you if you are doing an exe.
If you try creating a .exe without one compiler / linker will fail.

This discussion is closed to new replies.