Vidyalelo
C++ Programming · Q19

Arrays and Strings in C++

Programming · C++ Programming · question 19

Q19

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

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

Answer: Option D

Solution

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