为什么以下代码使用Dev-C++编译器而不是 Visual Studio 编译?
任何想法?这是代码:
#include<stdio.h>
main(){
int n,i;
scanf("%d",&n);
int arr[n];
for(i= 0 ; i <n ; i++)
{
//Do something with the array
}
fflush(stdin);
getchar();
}
以下是错误: