c语言怎么由用户定义数组长度 就是说我在定义一维数组时比知道需要几个元素,有没有可能由用户决定需要几个元素,然后定义数组变量。main() { int n; scanf("d%",&n); int a[n];}不能这样 应该怎么写