// simple example illustrating a structure type, structure variables, and // how to access the data inside the structures #include struct student { char fName[20]; // first name char lName[20]; // last name int socSecNumber; // social security number double gpa; // grade point average }; int main() { struct student s1 = {"John", "Smith", 123456789, 3.75}; struct student s2 = {"Alice", "Jones", 123123123, 2.66}; printf("%s %s: %d, %.2f\n", s1.fName, s1.lName, s1.socSecNumber, s1.gpa); printf("%s %s: %d, %.2f\n", s2.fName, s2.lName, s2.socSecNumber, s2.gpa); return 0; }