buf[2]="test"

来源:互联网 发布:拉7战斗机 知乎 编辑:程序博客网 时间:2024/04/27 03:09

int fun(void) {    char buf[2] = "test";     int x  = 1;  }

error C2117: 'buf' : array bounds overflow