Question DSA-STR-0032
EasyWhat does strcmp(s1, s2) return in C when the two strings are equal?
- A.
1
- B.
The length of the strings
- C.
−1
- D.
0
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Strings question
What does strcmp(s1, s2) return in C when the two strings are equal?
1
The length of the strings
−1
0
Sign up free to see the answer and a step-by-step explanation.