VS2019 supports ANSI C90 plus a few other features from a few later standards that are required in C++.
For example, you can tell that C99 is not fully supported in MSVC with this code, which will fail to compile:
int foo(int n, char *s)
{
char s2[n];
strcpy(s2, s);
return !strcmp(s, s2);
}
This specific feature (variable-length arrays) is not supported in MSVC, while the feature you mentioned (for
loop initial declaration) is.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…