description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C2233 |
Compiler Error C2233 |
11/04/2016 |
|
|
236bdf0b-9607-4f26-a249-d8def0b1333c |
'identifier' : arrays of objects containing zero-size arrays are illegal
Each object in an array must contain at least one element.
The following sample generates C2233:
// C2233.cpp
// compile with: /c
class A {
char somearray[1];
};
class B {
char zeroarray[];
};
A array[100]; // OK
B array2[100]; // C2233