Question: CSE 1 2 1 - - Introduction to C Programming Assignment # 7 Name your program: p 7 . c This week we
CSE Introduction to C
Programming Assignment #
Name your program: pc
This week we will work with the "struct" feature, and apply a basic sorting function to
an array of structures.
code for these
functions after your
main function.
void printpersoninfostruct person clone;
void sortbyagent n struct person a;
int main void
int ;
struct person student
Bob "Smith",
Jimmy "John",
Amy "Goldberg",
Dan "Marlo",
Sally "Sorrow",
;
The sortbyage
function should sort
the students, so as
the youngest is
placed in student
and the oldest is
placed in student
fori;;
nfo;
return ;
student
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
