全局变量优先初始化
int runBeforeMain() { printf("before mainn"); return 0;}int beforeMain = runBeforeMain();int main(int argc, const char **argv){ printf("main startn"); //do something printf("main endn");}
欢迎分享,转载请注明来源:内存溢出
全局变量优先初始化
int runBeforeMain() { printf("before mainn"); return 0;}int beforeMain = runBeforeMain();int main(int argc, const char **argv){ printf("main startn"); //do something printf("main endn");}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)