你可能感兴趣的试题
intnum[0..2008]; intnum[]; int N=2008; #defineN 2008 int num[N]; int num[N];
STD tt[2]={{1,'A',62},{2,'B',75}}; STD tt[2]={1,"A",62,2,"",75}; struct tt[2]={{1,'A'},{2,'B'}}; struct tt[2]={{1,"A",62.5},{2,"B",75.0}};
int num[ ]; #define N 100 int num[0..100]; int N=100;
int num[N];
STD tt[2]={{1,'A',62},{2,'B',75}}; STD tt[2]={1,"A",62,2,"",75}; struct tt[2]={{1,'A'},{2,'B'}}; struct tt[2]={{1,"A",62.5},{2,"B",75.0}};
int num[0..2008]; int num[]; int N=2008; int num[N]; int num[N]; #define N 2008
int a[5]=0,1,2,3,4,5); char a[]=0,1,2,3,4,5; char a='A','B','C'; int a[5]="0123";
STD tt[2]=1,'A',62,2,'B',75; STD tt[2]=1,"A",62,2,"B",75; struct tt[2]=1,'A'),2,'B'; struct tt[2]=1,"A",62.5,2,"B",75.0;
int num[0..2008]; int num[]; int N=2008; int num[N]; #define N 2008 int num[N];
STDtt[2]={{1,'A',62},{2,'B',75}}; STDtt[2]={1,"A",62,2,"B",75}; struet tt[2]={ {1,'A'},{2,'B'}}; struct tt[2]={{1,"A",62.5},{2,"B",75.0}};
#define N 2008 int num[N]; int num[]; int num[N]; int N=2008; int num[N]; int num[0..2008];
数组定义语句只能定义一维或二维数组 数组元素下标不能出现负值 在赋值语句中出现的A(3)肯定是数组元素 程序中使用的数组必须要先定义
int num[0..2008]; int num[]; int N=2008;
int num[N]; #define N 2008
int num[N];
intnum[0..2008]; intnum[]; int N=2008; #defineN 2008 int num[N];
int a[5]=0,1,2,3,4,5 char a[]=0,1,2,3,4,5; char a='A','B','C'; int a[5]="0123";