[单选题]

有以下程序:
#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 ",(++p)->x);
}
程序运行的结果是(  )。

A.10,1

B.20,1

C.10,2

D.20,2

参考答案与解析:

相关试题

有以下程序:<br />#include <stdio.h><br />struct st<br />{ int x,y;} data[2]={1,10