有以下程序
#include
struct tt
{int x;struct tt *y;} *p;
struct tt a[4]={20,a+1,15,a+2,30,a+3,17,a};
void main()
{
int i;
p=a;
for(i=1;ix); p=p->y;}
}
执行后的输出结果是( )。
A20,15,
B20,14,
C28,13,
Dmain函数必须出现在固定位置
相关试题
-
有以下程序 #include struct tt {int x;struct tt *y;} *p; struct tt a[4]={20,a+1,15,a+2,30,a+3,17,a}; void
-
有以下程序 struct STU{ char name[10]; int num; }; void f1(struct STU c) { struct STU b={LiSiGuo,2042}; c=
-
有以下程序 #include struct S { int a,b;}data[2]={10,100,20,200}; main() { struct S p=data[1];
-
有以下程序 struct stu { int num; char name[10]; int age; }; void fun(struct stu *p) { prin
-
有以下程序 #include struct ord { int x,y;}dt[2]={1,2,3,4}; main() { struct ord *p=dt; prin