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 S and S 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 HighSalary 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 S and S in main and call the HighSalary function to find the structure which has the highest Net Salary
iii Display the Employee number who gets highest salary of two.
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
