Q27
What does the 'strncpy()' function do in C++?
A.
Returns the length of a string
B.
Compares two strings
C.
Copies a specified number of characters from one string to another
AnswerD.
Concatenates two strings
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board