在 C 编程语言中,结构体的最常见用法是结构体数组。要声明结构体数组,首先必须定义结构体,然后必须定义该类型的数组变量。例如,struct book b[10]; //类型为‘book’的结构体数组中有 10 个元素示例以下是结构体数组的 C 语言程序 - 实时演示struct marks{ int sub1; int sub2; int sub3; int total; }; main(){ int i; struct marks student[3] = {{20,17,11,10}, {175,23,169,10}, {27,56,27,01}}; struct marks total; for(i = 0; i