struct st
{ int i;int j;}
main()
{ struct st m[3]={{10,1},{20,2},{30,3}},*p;
p=m;
printf("%d\n",(*++p).j);
}
{ struct student
{ char name[10];
float k1;
float k2;
}a[2]={{"tom",50,60},{"make",70,80}},*p=a;
int i;
printf("\n name:%s total=%f\n",p->name,p->k1+p->k2);
printf("\n name:%s total=%f\n",a[1].name,a[1].k1+a[1].k2);
下列语句中,正确的是()
设typedef double DB;,则与DB u[5];的等价形式是()
设typedef float REAL;则REAL是()
typedef long CLASS;的作用是()
设typedef double REAL;则REAL是变量名。
设typedef long class;,则class是()
typedef long CLASS的作用是()
设typedef int ARR[10];,与ARR a,*b;等价的定义是()
设typedef int ARRAY[10];,与ARRAY a,b;等价的是()
设typedef double Q[10];,与语句Q q;等价的是()
设typedef int ARR[10];,与ARR a,*b;等价的定义是()
设typedef int ARRAY[10];,与语句ARRAY a,b;等价的是()
设typedef int ARRAY[8];,与ARRAY a,*b;等价的定义是int a[8],b[8];。
设typedef int ARRAY[10];则与ARRAY a,b,c;等价的是。
下列关于在函数间传递结构体类型数据的说法错误的是()