x
Info
x
Warning
x
Danger
 / 
 / 
 / 
5. The following function supposedly creates an identical copy of

Question : 5. The following function supposedly creates an identical copy of : 19298

5. The following function supposedly creates an identical copy of string. What's wrong with the function?

char *dup(char *p) {

char *q;

strcpy(q, p);

return q;

}

Solution
5 (1 Ratings )

Solved
Other Subjects 1 Year Ago 50 Views
This Question has Been Answered!
Unlimited Access Free
Explore More than 2 Million+
  • Textbook Solutions
  • Flashcards
  • Homework Answers
  • Documents
Signup for Instant Access!
Ask an Expert
Our Experts can answer your tough homework and study questions
29870 Other Subjects Questions Answered!
Post a Question