The main() function is the starting point for a program execution in Cpp.
Is it possible to run a program without the main() function ? Every time I try it, my compiler shuts down instantaneously.
Just Curious !!
It is certainly possible. However, if you want to use something other than main(), you'll have to do some assembly programming to replace the C runtime (CRT) that executes your main() function.
It is not possible to make a program without the main() function.
A C++ program starts at the main function first. Don't you know curiosity killed the cat!