首页 >社区问答列表 >变量的内存分配

变量的内存分配

#include <stdio.h>int main(){    static int a = 0;    int b = 0;    return 0;
}

如在例子中的变量内存,请问是在编译时分配的还是在运行时分配的?