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:
Verified
Q20: The number of bits in a bit
Q21: The main difference between the functions atof,
Q22: Assuming that string1 = "hello" and string2
Q23: The _ function allows characters of one
Q24: Which function would be the most useful
Q25: Strtok does not:
A) Replace each delimiting character
Q26: Memcmp would return _ for the call
Q28: To change the string "ABCDEFGHI" to "aaaaaFGHI"
Q29: The strtol and stroul functions do not:
A)
Q30: What is the output of the following
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents