Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 577 Bytes

compiler-error-c2233.md

File metadata and controls

30 lines (24 loc) · 577 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2233
Compiler Error C2233
11/04/2016
C2233
C2233
236bdf0b-9607-4f26-a249-d8def0b1333c

Compiler Error C2233

'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