简答题如果有定义语句:struct { int x,; int y; } s[2] = { { 1, 3 }, { 2, 7 } };则语句:printf(“%d\n”, s[0].y/s[1].x ); 输出结果为( )。 A、0 B、1 C、2 D、3简答题如果有定义语句: struct { int x,; int y; } s[2] = { { 1, 3 }, { 2, 7 } }; 则语句: printf(“%d\n”, s[0].y/s[1].x ); 输出结果为( )。 A、0 B、1 C、2 D、3简答题以下scanf函数调用语句中错误的是()。 struct pupil { char name[20]; int age; int sex; }pup[5]; A、scanf("%s", &pup[0].name); B、scanf("%d", &pup[1].age); C、scanf("%d", &pup[2].sex); D、scanf("%s", pup[4].name);简答题结构数组是结构与数组的结合体,与普通数组的不同之处在于每个数组元素都是一个结构类型的数据,包括多个成员项。简答题对于结构数组s,既可以引用数组的元素s[i],也可以引用s[i]中的结构成员。