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

Compiler Error C2087

'identifier' : missing subscript

The definition of an array with multiple subscripts is missing a subscript value for a dimension higher than one.

The following sample generates C2087:

// C2087.cpp
int main() {
   char a[10][];   // C2087
}

Possible resolution:

// C2087b.cpp
int main() {
   char b[4][5];
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.