數組的初始化和二維數組、指針與數組

1、數組的初始化,比較簡單,實例程如下: 1 2 3 4 5 6 7 8 9 #include<stdio.h> # define M 12 int  main( void ){ int  days[M]={31,28,31,30,31,30,31,30,30,31,30,31}; int  i; for (i=0;i<M;i++) printf ( "Months %d has %2d days
相關文章
相關標籤/搜索