Export (0) Print
Expand All
Expand Minimize

Compiler Error C2233

Error Message

'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

Community Additions

ADD
Show:
© 2014 Microsoft