Question: Assume that there are two structures S 1 and S 2 . Each structure consists of Employee Number, Name , Designation and Net salary of

Assume that there are two structures S1 and S2. Each structure consists of Employee Number, Name , Designation and Net salary of an
employee. Write a program to do the following:
(i) Develop a function High_Salary () with two pointer variables for two structures as parameters that compares Net salaries of two structures and
returns the structure which has highest Net Salary
(ii) Get the members of S1 and S2 in main() and call the High_Salary () function to find the structure which has the highest Net Salary
(iii) Display the Employee number who gets highest salary of two.
(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!