Avoiding the main (entry point) in a C program

前端 未结 7 2050
迷失自我
迷失自我 2020-12-01 10:50

Is it possible to avoid the entry point (main) in a C program. In the below code, is it possible to invoke the func() call without calling via main()

相关标签:
7条回答
  • 2020-12-01 11:53

    Rename main to be func and func to be main and call func from name.

    If you have access to the source, you can do this and it's easy.

    0 讨论(0)
提交回复
热议问题