Top

Discussion

which of the following function returns a pointer to the located string or a null pointer if string is not found.

  • A.strtok()
  • B.strstr()
  • C.strspn()
  • D.strrchr()

Answer: B

The strstr() function is used to return a pointer to the located string, or if string is not found a null pointer is returned.

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

Post your comment