Question: Write a function, named findMax for Figure Q1(c) that will return the maximum salary from the linked list. #include #include #include #define SIZE 10

Write a function, named findMax for Figure Q1(c) that will return the 

Write a function, named findMax for Figure Q1(c) that will return the maximum salary from the linked list. #include #include #include #define SIZE 10 struct Staff{ char name [20]; double salary;); typedef struct Staff Staff; struct StaffNode ( } Staff staffData; struct StaffNode *next;); int main () ( int i; char staffName [20]; double staffSalary; struct StaffNode *head - NULL, *pl; for (i-0; i staffData.name, staffName); pl->staffData.salary = staffSalary; pl->next NULL; NULL) if (head head pl; else pl->next head; head p1;} return 0; Figure Q1(c)

Step by Step Solution

3.34 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Code in C include include Define a node structure for the linked list struct Node int salary struct Node next Function to create a new node struct Nod... View full answer

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!