129

问答题 129 /252

请你来写个函数在main函数执行前先运行

参考答案

参考回答:

__attribute((constructor))void before()
{
    printf("before main\n");
}