why a[n] is accepted in c during runtime?

后端 未结 4 1873
半阙折子戏
半阙折子戏 2021-01-12 02:39

why can we do this in c?

int n;
scanf(\"%d\",&n);
int a[n];

I thought array is located memory during load time but seems like the above

4条回答
提交回复
热议问题