这个奇怪的事情发生了,我设法把它浓缩成这个小程序:
int main() { int a[20]; a[21] = 5; return 0; }
这个程序导致在puppies puppies puppies终端上不断滚动,直到我点击 control-C。这是怎么回事?!
puppies puppies puppies
编辑:这个问题有什么不清楚的地方?请告诉我,以便我改进它。
c++ arrays undefined-behavior
arrays ×1
c++ ×1
undefined-behavior ×1