Question: Create a data structure that contains the following information for a QMUL student: Student's last name (up to a maximum of 20 characters long) Student's

Create a data structure that contains the following information for a QMUL student:

Student's last name (up to a maximum of 20 characters long)

Student's ID number

Student's age

Rename the struct so it is called the student type. Then, create a function print_data that takes a student and prints all the information.

Add the code above to a C program. In the main() function, create a student variable and initialise it with your personal QMUL data, which should then be printed using the print_data function you wrote.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!