选项A中的表达式“stu[3].age”是错误的,因为数组下标从0开始,而stu数组的长度为3,有效的下标为0、1、2,因此stu[3]是越界的。正确的表达式应该是“stu[2].age”。

03.有以下说明和定义语句struct student int age; char num8;; struct student stu3=20 00121 00219003;struct student p=stu; 以下选项中引用结构体变量成员的表达式错误的是____。AA stu3 age Bp numc p++-numD p-num为什么

原文地址: https://www.cveoy.top/t/topic/eGGe 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录