Question: Problem 3. Suppose you have this structure: struct student { char name[50]; int ID; float marks [3] float avg_marks; Write a function that takes a

Problem 3. Suppose you have this structure: struct student { char name[50]; int ID; float marks [3] float avg_marks; Write a function that takes a struct student argument. Assume that the passed structure contains the name, ID and marks of 3 different subject information. Have the function calculate the average marks for the avg marks member and return the new completed structure. Test your program with 5 inputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
