in c++ main function is the entry point to program how i can change it to an other function?

前端 未结 13 1890
忘了有多久
忘了有多久 2020-12-03 01:12

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?

13条回答
  •  半阙折子戏
    2020-12-03 01:28

    On windows there is another (rather unorthodox) way to change the entry point of a program: TLS. See this for more explanations: http://isc.sans.edu/diary.html?storyid=6655

提交回复
热议问题