Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual C++
C/C++ Build Errors
 Compiler Warning (levels 2 and 4) C...
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual C++ Concepts: Building a C/C++ Program
Compiler Warning (levels 2 and 4) C4200

Error Message

nonstandard extension used : zero-sized array in struct/union

A structure or union contains an array with zero size.

Level-2 warning when compiling a C++ file and a Level-4 warning when compiling a C file.

// C4200.cpp
// compile with: /W2
#include <stdio.h>
struct A {
int a[0];  // C4200
};
int main() {
}
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker