ExamVeda
Login
Home
This question belongs to C Program Arrays And Strings
Arrays and Strings
?

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

Answer & Solution
Correct Answer: Option B

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

Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.