Vidyalelo
C++ Programming · Q4

Arrays and Strings in C++

Programming · C++ Programming · question 4

Q4

What is the purpose of the 'strlen()' function in C++?

A.
Concatenates two strings
B.
Compares two strings
C.
Returns the length of a null-terminated string
Answer
D.
Copies a string to another string

Answer: Option C

Solution

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