共用方式為


編譯器錯誤 C2118

負下標

定義數位大小的值大於數位大小上限或小於零。

下列範例會產生 C2118:

// C2118.cpp
int main() {
   int array1[-1];   // C2118
   int array2[3];   // OK
}