数组索引在C中超出界限
C
#include <stdio.h>int main(){
int a[10];
a[3]=4;
a[11]=3;//does not give segmentation fault
a[25]=4;//does not give segmentation fault
a[20000]=3; //gives segmentation fault
return 0;}a[11]a[25]a[20000].
sizeof(a)
慕虎7371278
慕娘9325324
随时随地看视频慕课网APP
相关分类