Examveda

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

D. Concatenates two strings

Answer: Option C


Join The Discussion

Related Questions on Arrays and Strings in C plus plus