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 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
Get step-by-step solutions from verified subject matter experts
