Question 20 Consider Following Code Best Describes Overall Purpose Function Myfunction Typ Q28382514

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 studentsmedia%2F1dc%2F1dcca4cd-7d1f-4772-852f-efmedia%2F96a%2F96a473d3-b33e-4fa1-a4d5-9cmedia%2F755%2F7551c209-31b5-4fec-8313-65media%2Fd7c%2Fd7cc6e52-9f2d-470f-aa56-e1media%2F6fb%2F6fb0d64e-5ba6-42d1-8fa8-41Question 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 Show transcribed image text

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *