Top

Discussion

What is the use of function char *strchr(ch, c)?

  • A.return pointer to first occurrence of ch in c or NULL if not present
  • B.return pointer to first occurrence of c in ch or NULL if not present
  • C.return pointer to first occurrence of ch in c or ignores if not present
  • D.return pointer to first occurrence of cin ch or ignores if not present

Answer: B

The given code char *strchr(ch, c) return pointer to first occurrence of c in ch or NULL if not present.

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

Post your comment