A structure type is defined as:
typedef struct student{ int id; char* name; double score; } Student;
I construct a variable of type
In C99 standard you can assign values using compound literals:
Student s1; s1 = (Student){.id = id, .name = name, .score = score};