Machine-translated by Google. Questions are authored in English.
Top

Discussion

The strpbrk() function is used to return a pointer to the character, or a null pointer if no character from s2 occurs in s1.

  • A.true
  • B.false

Answer: A

Correct answer: true

strpbrk(s1, s2) - “pointer break” - scans s1 for the first character that appears anywhere in s2, and returns a pointer to it, or NULL if none of them occurs. It is the pointer-returning counterpart of strcspn, which returns the same position as a length.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.