This code in CodeBlock works without errors.
typedef struct exmpl{ int index; char name[50]; int count; } result; int size; scanf("%d", &size); result data[size]; But in Visual Studio gives errors
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2133: 'data': unknown size
As I understand the problem is not in the IDE but in the C standards or compilers?