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

Discussion

The______function returns a pointer to the first character of a token.

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

Answer: D

Correct answer: strtok()

strtok() returns a pointer to the first character of the next token, or NULL when there are none left. It finds a token by skipping leading delimiters and then writing a null over the delimiter that ends it.

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

Post your comment

Please log in or register to post a comment.