涉及知识点:数组,结构体和指针

分析以下程序的运行结果:

#include "stdio.h"
struct  sp
{
    int a;
    int *b;
} *p ;
int d[3]={10,20,30};
struct sp t[3]={70,&d[0],80,&d[1],90,&d[2]};
void main()
{
    p=t;
    printf("%d%d\n",++(p->a),*++p->b);

}

运行结果为:712

C语言程序设计 数组,结构体和指针练习题

C语言程序设计 数组,结构体和指针练习题

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2021-08-29
  • 2022-03-09
  • 2021-06-11
  • 2021-05-12
  • 2022-12-23
猜你喜欢
  • 2021-06-25
  • 2021-09-20
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
相关资源
相似解决方案