Question: Assume that there are two structures S 1 and S 2 . Each structure consists of Register Number, Name and Average of a student. Write
Assume that there are two structures S and S Each structure consists of Register Number, Name and Average of a student. Write a program to
do the following:
i Develop a function Compare with two pointer variables for two structures as parameters that compares averages of two structures and
returns the structure which has highest average
ii Get the members of S and S in main and call the Compare function to find the structure which has the highest average
M
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
