// same as struct3.c, but using a typedef to create an official typename. #include typedef struct student { char fName[20]; // first name char lName[20]; // last name int socSecNumber; // social security number double gpa; // grade point average } Student; // the typename is now "Student" void PrintStudent(Student s); // struct passed as parameter int main() { Student s1 = {"John", "Smith", 123456789, 3.75}; Student s2 = {"Alice", "Jones", 123123123, 2.66}; Student s3 = {"Marvin", "Dipwart", 999999333, 1.49}; PrintStudent(s1); PrintStudent(s2); PrintStudent(s3); return 0; } void PrintStudent(Student s) // prints the internal data of any student structure passed in { printf("%-20s %-20s %10d GPA: %4.2f\n", s.fName, s.lName, s.socSecNumber, s.gpa); }