小熊猫Dev c++ 6.7.5编译以下代码正常
#include<bits/stdc++.h> using namespace std; int a[10]; int main() { cout << a[-1]; return 0; }
输出0。 问:为什么下标取-1可以正常编译运行? 我发现这个问题还是我在做P5018的时候没判一些情况,导致可能下标取-1,结果AC了