Compiler Error C2075
'identifier' : array initialization needs curly braces
There were no curly braces around the specified array initializer.
The following sample generates C2075:
// C2075.c
int main() {
int i[] = 1, 2, 3 }; // C2075
}
Possible resolution:
// C2075b.c
int main() {
int j[] = { 1, 2, 3 };
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for