Export (0) Print
Expand All
Expand Minimize
0 out of 11 rated this helpful - Rate this topic

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.

Example

// C4200.cpp
// compile with: /W2
#include <stdio.h>
struct A {
int a[0];  // C4200
};
int main() {
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.