Top

Discussion

Which code from the given option return pointer to last occurrence of c in ch or NULL if not present?

  • A.char *strchr(ch, c)
  • B.char *strrchr(ch, c)
  • C.char *strncat(ch, c)
  • D.char *strcat(ch, c)

Answer: B

The function char *strrchr(ch, c) returns pointer to last occurrence of c in ch or NULL if not present.

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

Post your comment