Must be done in C.
given the following struct and function, modify the function to take a pointer to a student struct. Make the necessary modifications to the code in the function arguments and body.
struct student
{
char name [30];
char housing [30];
int count;
};
void getName(char*name,int n)
{
printf("Enter name:");
fgets(name,n,stdin);
struct student {
char name[30];
char housing[30];
int count;
};
void getName(struct student *s) {
printf("Enter name:");
fgets(s->name, s->count, stdin);
}
Must be done in C. given the following struct and function, modify the function to take...