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

Discussion

Which of the following comments about wide characters is/are true ?

  • A.it is binary representation of a character in the extended binary set
  • B.it is of integer type wchar_t
  • C.end of file is represented by WEOF
  • D.All of the above

Answer: D

Correct answer: All of the above

All three statements hold. A wide character is a binary representation of a character from an extended set, wide enough to hold members of the largest supported character set - which is what allows scripts beyond a single-byte encoding to be represented.

Its type is wchar_t, an integer type defined in stddef.h, and the wide-character input functions signal end of file by returning WEOF, the wide analogue of EOF. The wide-character library mirrors the ordinary one throughout, with wcslen for strlen and so on.

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

Post your comment

Please log in or register to post a comment.