When is memory allocated during compilation?

后端 未结 8 1906
说谎
说谎 2020-12-18 15:18

When I write

int main()
{
    int j;
}

The memory for j is allocated at the time of compilation, but when during compilation?

8条回答
  •  一个人的身影
    2020-12-18 15:33

    Compilation generates the executable code for a program. Program memory is allocated when that executable code is run.

提交回复
热议问题