Is it possible to write a program without using main() function?
问题 I keep getting this question asked in interviews: Write a program without using main() function? One of my friends showed me some code using Macros, but i could not understand it. So the question is: Is it really possible to write and compile a program without main() ? 回答1: Within standard C++ a main function is required, so the question does not make sense for standard C++. Outside of standard C++ you can for example write a Windows specific program and use one of Microsoft's custom startup