1. Home
  2. Computer Science MCQs
  3. C Programming
  4. What does strcmp return when its two arguments are equal…

Added 30 Nov -0001

What does strcmp return when its two arguments are equal strings?

  1. Null
  2. True
  3. Zero Correct answer
  4. False

Correct answer

C. Zero

14 views

MCQSEXAM

Explanation

strcmp returns zero only when the compared strings are identical, character for character.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C Programming MCQs

Practise all C Programming MCQs

Similar MCQs