Solved

Which of the Following Correctly Copies the Contents of String2

Question 15

Multiple Choice

Which of the following correctly copies the contents of string2 into string1? Assume that string2 is equal to "goodbye" and string1 is equal to "good morning"?


A) strcpy(string1, string2) ;.
B) strcpy(string1, string2, 6) ;.
C) Strncpy(string1, string2, 5) ;.
D) strncpy(string1, string2, 6) ;.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions