结构体变量的初始化和赋值

下面是一段结构体变量初始化和赋值的小程序:web #include <stdio.h> struct Student { int age; float score; char sex; }; int main(void) { //定义并赋值称之为初始化 struct Student st1 = {80, 66.0F, 'F'}; //定义声明结构体变
相关文章
相关标签/搜索