程序设计 选择题 较难 ★ 精品

结构体数组与指针 — 程序设计选择题

C 程序设计(大学通用) 结构体与文件 AI 三重审校通过

题目
有如下程序段: struct Student { int id; int score; }; struct Student a[3] = {{1, 60}, {2, 70}, {3, 80}}; struct Student *p = a; printf("%d ", (p++)->score); printf("%d ", ++p->score); printf("%d", p->id); 则程序的输出结果是(提示:-> 的优先级高于 ++(后缀/前缀均如此)) A. 60 71 2 B. 60 70 3 C. 61 71 3 D. 60 71 3