当前位置: 答题翼 > 问答 > 大学专科 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

以下程序输出结果是()。 struct stu {int x; int *y; }*p; int dt[4]={10,20,30,40}; struct stu


以下程序输出结果是(  )。

  struct stu

  {int x;

   int *y;

  }*p;

  int dt[4]={10,20,30,40};

  struct stu a[4]=150,&dt[0],60,&dt[1],70,&dt[2],80,&dt[3]};

  main()

  {

   p=a;

   printf("%d,",++p->x);  //语句1

   printf("%d,",(p)->x);  //语句2

   printf("%d\n",++(*p->y));  //语句3

  }

  A.10,20,20  B.50,60,21 C.51,60,21 D.60,70,31

参考答案
您可能感兴趣的试题
  • 以下程序的输出结果是 include struct st { int x;int *y;}*p; int dt[4]={10,2

  • 以下程序的输出结果是 include struct st { int x;int *y;}*p; int dt[4]={10,2

  • 以下程序的输出结果是【 14 】#include <stdio.h> #include <stdio.h>#include <st

  • 下面程序的输出结果为()。struct st { int x; int*y; } *p; int dt[4]={10,20,30,40}; struct st

  • 下列程序的输出结果是()struct abc{ int a b c;};main(){ struct abc s[2]={{1 2 3} {4 5 6}};in

  • 有以下程序段struct st{int x;int *y;)*pt;int a[]={l 2} b[]={3 4};struct st c[2]={10 a