Question: Suppose you have this structure: struct student { }; char name[50]; int ID; float marks [3]; float avg_marks; Write a function that takes a
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 Activate Go to Setting
Step by Step Solution
There are 3 Steps involved in it
include stdio h struct student char name50 int ID float marks3 float avgmarks st... View full answer
Get step-by-step solutions from verified subject matter experts
