Vidyalelo
C++ Programming · Q27

Arrays and Strings in C++

Programming · C++ Programming · question 27

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
Answer
D.
Concatenates two strings

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board