【发布时间】:2010-12-13 05:25:09
【问题描述】:
据我所知,在 c 中编译时间之前,数组需要具有特定的大小。
我想知道为什么这段代码仍然有效?
int s;
printf("enter the array size: ");
scanf("%d",&s);
int a[s]; // Isn't s value determined at run time?
【问题讨论】:
标签: c arrays memory-management size definition