Exercise 3 Use Following Framework Design Function Exchange Two Student Data Struct Studen Q43780980
Exercise 3 Use the following framework, Design a function to exchange two “student” data. struct student long id; char Name[10]; int subject1; int subject2; int subject3; void swap(struct student *sl, struct student *s2); void printscore(struct student *sn); eint main() struct student st1 = { 104310030,” struct student st2 = { 104310047,” 1″),60,70,80); 2″, 90,80,70 }; void swap(struct student *s1, struct student *s2) struct student temp; temp = *s1; void printscore(struct student *sn) 40 41 – O x 1 C:Usersusersourcerepos week15Debugweek15.exe WAT 104310030 291 152:60 #24:70 32:80 104310047 2 2152:90 # 252:80 Show transcribed image text Exercise 3 Use the following framework, Design a function to exchange two “student” data. struct student long id; char Name[10]; int subject1; int subject2; int subject3; void swap(struct student *sl, struct student *s2); void printscore(struct student *sn); eint main() struct student st1 = { 104310030,” struct student st2 = { 104310047,” 1″),60,70,80); 2″, 90,80,70 }; void swap(struct student *s1, struct student *s2) struct student temp; temp = *s1; void printscore(struct student *sn) 40 41 – O x 1 C:Usersusersourcerepos week15Debugweek15.exe WAT 104310030 291 152:60 #24:70 32:80 104310047 2 2152:90 # 252:80
Expert Answer
Answer to Exercise 3 Use the following framework, Design a function to exchange two “student” data. struct student long id; char…
OR