Question: Student Name_ 9. The foll owing function supposedly creates an identical copy of a string. What's wrong with the function? char strdup (const char p)

 Student Name_ 9. The foll owing function supposedly creates an identical

Student Name_ 9. The foll owing function supposedly creates an identical copy of a string. What's wrong with the function? char strdup (const char "p) char q stropy (q,P) return q 10. What is the problem with following code? int main int "p (int malloc(sizeof (int)): NULL free (p) 11. Below is one example used to create a thread in C. But why pthread library needs the address of thread id passed into function pthread_create? pthread_ create(&threads id, NULL, &Hello_world, NULL)

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!