nerdexam
Zend

200-530 · Question #232

You analyze the code of a collegue and see, it uses the function strcasecmp. You try it out to see what it does and use the following function call: strcasecmp('hello my dear!', 'Hello my DEAR!')…

The correct answer is B. The strings are considered equal. See the full explanation below for the reasoning.

Question

You analyze the code of a collegue and see, it uses the function strcasecmp. You try it out to see what it does and use the following function call: strcasecmp('hello my dear!', 'Hello my DEAR!'); The function call returns "0". What does that mean?

Options

  • AString 1 is less than string 2.
  • BThe strings are considered equal.
  • CString 2 is less than string 1.
  • DThe strings have equal length.

How the community answered

(38 responses)
  • A
    8% (3)
  • B
    74% (28)
  • C
    13% (5)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice