I was asked an interview question to change the entry point of a C or C++ program from main() to any other function. How is it possible?
From C++ standard docs 3.6.1 Main Function,
A program shall contain a global function called main, which is the designated start of the program. It is implementation-defined whether a program in a freestanding environment is required to define a main function.
So, it does depend on your compiler/linker...