What does strcmp return when its two arguments are equal strings?
-
A
Null
-
B
True
-
C
Zero
Correct answer
-
D
False
14 views
Explanation
strcmp returns zero only when the compared strings are identical, character for character.
Reference
Asked in: NTS, PPSC IT, Campus Interviews
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ