有以下程序
#include <stdio.h>
Struct st
{ int x,y;} data[2]={1,10,2,20};
Main()
{ struct st *p=data;
Printf("%d,",p->y);
Printf("%d\n",(++p)->x);
}
程序的运行结果是______。
A.10,1
B.20,1
C.10,2
D.20,2
正确答案是C
有以下程序
#include <stdio.h>
Struct st
{ int x,y;} data[2]={1,10,2,20};
Main()
{ struct st *p=data;
Printf("%d,",p->y);
Printf("%d\n",(++p)->x);
}
程序的运行结果是______。
A.10,1
B.20,1
C.10,2
D.20,2
正确答案是C