此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
负下标
定义数组大小的值大于最大数组大小或小于零。
以下示例生成 C2118:
// C2118.cpp int main() { int array1[-1]; // C2118 int array2[3]; // OK }
此页面是否有帮助?