Examveda
Examveda

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: Option D


Join The Discussion

Related Questions on Arrays and Strings in C plus plus