數組訪問越界

首先,分析一段c語言代碼的運行結果 #include <stdio.h> #include <stdlib.h> int main() { int arr[3]; int i=0; for(;i<=3;i++) { arr[i]=0; printf("Hello world!\n"); } return 0; } 這段代碼的運行結果並非是打印三行「hello worl
相關文章
相關標籤/搜索