I'm trying to use the latest Visual Studio 2019 Community to run some C projects, but the compiler tries to build it as if it was c++ code. For example, declaring an array like this throws the error: "expression must have a constant value"
#include <stdio.h>
int main(){
int input;
scanf("%d", &input);
int array[input];
return 0;
}
I understand that C++ doesn't allow declaration like this, but my source file is in .c format so why doesn't it just build and run like in every other IDE?