Home » C Programming » Strings

If the two strings are identical, then strcmp() function returns

Correct Answer: 0

Explanation:

Declaration: strcmp(const char *s1, const char*s2);


The strcmp return an int value that is


if s1 < s2 returns a value < 0


if s1 == s2 returns 0


if s1 > s2 returns a value > 0


← Previous Question Next Question→

More Questions from Strings

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion