1,

struct stu{int x; int *y;
} *p;
int dt[4] = {10, 20, 30, 40};
struct stu a[4] = {50, &dt[0], 60, &dt[1], 70, &dt[2], 80, &dt[3]};int main( )
{ p=a;printf("%d,", ++p->x); //p->x 值为50,之后++50==51printf("%d,", (++p)->x);//(++p)表达式值为a[1],同时p向之后移一个单位。之后a[1]-->x 值为60printf("%d", ++(*p->y));//p->y 值为&dt[1],++20==21return 0;
}输出:
51,60,21

2,如果结构变量s中的生日是“1984年11月11日”,下列对其生日的正确赋值是(A)

struct student
{  int no;char name[20];char sex;struct{int year;int month;int day;}birth;
};
struct student s;---------------------------
struct add {int year;int month;int day;
};struct student
{  int no;char name[20];struct add birth;char sex;};
struct student s;

A.s.birth.year = 1984; s.birth.month = 11; s.birth.day=11;

B.birth.year = 1984; birth.month = 11; birth.day = 11;

C.s.year = 1984; s.month = 11; s.day = 11;

D.year = 1984; month = 11; day = 11;

PTA ---结构错题汇总相关推荐

  1. 2017-2018-1 《信息安全系统设计基础》课下测试错题汇总

    2017-2018-1 <信息安全系统设计基础>课下测试错题汇总 (多选题|1分)假设用ADD指令完成C表达式t=a+b的功能,有关条件码寄存器的说法正确的是() A.若t==0,则ZF= ...

  2. mulesoft MCIA 易错题汇总解析(补充)

    mulesoft MCIA 易错题汇总解析(补充 1. What limits if a particular Anypoint Platform user can discover an asset ...

  3. mulesoft MCIA 易错题汇总解析

    mulesoft MCIA 易错题汇总解析 1. An API implementation is being designed that must invoke an Order API which ...

  4. mulesoft MCD 易错题汇总解析

    mulesoft 易错题汇总解析 An One Table Row Database listener retireves data from a table that contains record ...

  5. 项目管理师——2015-2017错题汇总

    2017年下半年(41分) (遥感和传感技术)是物联网应用的基础,是两化融合的重要技术之一. 研究软件架构的根本目的是解决软件的复用.质量和维护问题,软件架构设计是软件开发过程中的关键的一步,因此需要 ...

  6. PMP 易错题汇总(二)

    A project is falling behind schedule due to several quality issues that request extensive rework. Th ...

  7. PTA练习题错题归纳

    文章目录 厘米换算英尺英寸 tips:[另附C语言取整方法 实验2-2-7 整数152的各位数字 实验2-3-3 计算存款利息 实验2-3-5 整数算术运算 实验2-3-7 阶梯电价 实验2-3-8 ...

  8. signature=3cb79ad68e1de6fcae23aede975d0e4e,考研二外法语易错题汇总

    时态 1.Dans un proche avenir, l'Internet ______ dans beaucoup de familles chinoises. A. sera entré B. ...

  9. BUPT数电爱课堂概念题_易错点_错题 汇总

    脱单干嘛?数电ta不香嘛 第一周 第二周 第三周 第四周 第五周 第六周 第七周(待更新,还没写完,大家期中考试加油!) 第一周 在这里在这里https://blog.csdn.net/JCMLSY/ ...

最新文章

  1. 给Nginx配置一个自签名的SSL证书
  2. ORA-28002: the password will expire
  3. 详解分布式一致性机制
  4. ad10怎么挖铺的铜_赣州“云星公园大观”的商铺,5米层高变4.5米,开发商挖地来凑?...
  5. mysql 5.6密钥_MySQL的密钥文件不正确
  6. IE本地网页弹出黄条“限制网页脚本”
  7. IC卡设备驱动模块的代码
  8. Leetcode130.被围绕的区域
  9. Linux系统初学者指南,Linux系统新手入门指南(二)
  10. 本地通过Eclipse链接Hadoop操作Mysql数据库问题小结
  11. Atitit oracle新特性5 6 7 8 9 10 11 12 18 19 20 attilax总结 目录 1.1. :ora 20c 1 1.2. Oracle Database 19c 的
  12. day31 模块 与包
  13. vi编辑器基本命令(简略)
  14. 巨蟒python全栈开发-第5天 字典集合
  15. 【shenyu网关学习】1.什么是 Apache ShenYu
  16. excel数据导入mysql
  17. 小米html查看器 联网,小米摄像机如何连接无线路由器通过手机查看
  18. 软件测试使用linux做什么?
  19. 从零开始写项目第三篇【在线聊天和个人收藏夹】
  20. iphone ios 横屏,旋转 无响应

热门文章

  1. GitHub上YOLOv5开源代码的训练数据定义
  2. 微信架构 支付架构(下)
  3. 结构感知图像修复:ICCV2019论文解析
  4. Python案例:使用正则表达式的爬虫
  5. Python 把列表转成元组
  6. Android LayoutInflater 的使用
  7. .svn提交项目提示更新副本
  8. Python Day26:多态、封装、内置函数:__str__、__del__、反射(反省)、动态导入模块...
  9. .net平台性能很不错的轻型ORM类Dapper(转)
  10. Ubuntu 划词翻译