Avoiding the main (entry point) in a C program

前端 未结 7 2095
迷失自我
迷失自我 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.

提交回复
热议问题