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

Discussion

Use_______to determine the null-terminated message string that corresponds to the error code errcode.

  • A.strerror()
  • B.strstr()
  • C.strxfrm()
  • D.memset()

Answer: A

Correct answer: strerror()

strerror(errcode) returns a pointer to a human-readable message for the given error number - typically the value of errno after a failed library call. perror() is the related function that prints such a message directly.

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

Post your comment

Please log in or register to post a comment.