Solved

Which of the Following Correctly Copies the Contents of String2

Question 27

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents