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 S1 and S2. 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 S1 and S2 in main() and call the Compare () function to find the structure which has the highest average
(5 M)
Assume that there are two structures S 1 and S 2

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 Programming Questions!