标签: c arrays
我不明白为什么我要输出数字大于数组长度的字符。
我认为我接触了另一个存储单元,但我无法完全理解
#include <stdio.h> int main() { char string[10] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', '\0' }; putchar(string[110000124512]); return 0; }
我希望错误的长度是有限的,但是我得到一个符号