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

Discussion

The macro MB_LEN_MAX is used to find _________

  • A.Maximum number of bytes in a multi-byte character
  • B.Whether the given function is valid or not
  • C.The maximum time taken for the execution of a particular function
  • D.Maximum number of bits in a multi-byte character

Answer: A

Correct answer: Maximum number of bytes in a multi-byte character

MB_LEN_MAX, in <limits.h>, is the largest number of bytes any multibyte character can occupy in any supported locale - so a buffer of that size is always big enough. Its companion MB_CUR_MAX, in <stdlib.h>, gives the maximum for the locale currently in force.

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

Post your comment

Please log in or register to post a comment.