answersLogoWhite

0


Best Answer

strcmp is used to compare two strings. If the return value is zero, the two strings are the same. If the return value is less than 0, then the first string is less than the second string, otherwise the first string is greater than the second string. Strings are compared lexicographically, character by character.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the use of strcmp function in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp