当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

有以下程序 #include<stdio.h>struct ord {int x y;} dt[2]={1 2 3 4};main(){ struct ord


有以下程序

#include<stdio.h>

struct ord

{int x,y;} dt[2]={1,2,3,4};

main()

{

struct ord*p=dt;

printf(“%d,”,++(p一>x));printf(“%d\n”,++(p一>y));

}

程序运行后的输出结果是

A.1,2

B.4,1

C.3,4

D.2.3

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • (37 )有以下程序#include &lt;stdio.h&gt;#include &lt;string.h&gt;struct A{ int a; char b[1

  • (37 )有以下程序#include &lt;stdio.h&gt;#include &lt;string.h&gt;struct A{ int a; char b[1

  • (38)有以下程序#include &lt;stdio.h&gt;struct S{ int a,b;}data[2]={10,100,20,200};main(){ s

  • 有以下程序#include &lt;stdio.h&gt;struct stu{ int num; char name [10];int age;};Void fun(s

  • 有以下程序#include &lt;stdio.h&gt;struct st{int x, y, z;} data[2]={3,10,2,20,15,7};main(){

  • 有以下程序 #include<stdio.h>struct ord {int x y;} dt[2]={1 2 3 4};main(){ struct ord