Question: Question 20 Consider the following code. What best describes the overall purpose of the function myFunction? typedef struct char name[100 int ID ) Student Student

 Question 20 Consider the following code. What best describes the overall
purpose of the function myFunction? typedef struct char name[100 int ID )
Student Student myFunction(int n) Student x (Student "1 malloc(sizeof(Student) n) memset(x,0,sizeof(Student) n)
return x; Dynamically allocate exactly 100 students and return the pointer to
the memory. Dynamically allocate an array of students, based on the input,
and return the pointer to the memory. Set an array of students

Question 20 Consider the following code. What best describes the overall purpose of the function myFunction? typedef struct char name[100 int ID ) Student Student myFunction(int n) Student x (Student "1 malloc(sizeof(Student) n) memset(x,0,sizeof(Student) n) return x; Dynamically allocate exactly 100 students and return the pointer to the memory. Dynamically allocate an array of students, based on the input, and return the pointer to the memory. Set an array of students that was passed by reference to 0 O Free a previous memory allocation of an array of students

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!