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

Discussion

The pointer used in the mblen() function points to the _________

  • A.first byte of multibyte character
  • B.last byte of multibyte character
  • C.middle byte of multibyte character
  • D.no pointer is used in mblen function

Answer: A

Correct answer: first byte of multibyte character

mblen(s, n) examines the multibyte character beginning at s - the pointer must therefore be at its first byte, since the length can only be determined from there. It returns how many bytes that character occupies, so that a program can step through a multibyte string.

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

Post your comment

Please log in or register to post a comment.