c語言程序老是從main函數開始執行嗎?

答案是否認的!爲何呢?web 1、在Linux C中,使用attribute關鍵字,聲明constructor和destructor,能夠自定義程序入口點,不必定是在main函數開始執行。svg #include <stdio.h> __attribute((constructor)) void before_main() { printf("%s/n",__FUNCTION__); } _
相關文章
相關標籤/搜索