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

Discussion

Which macro is used in the setlocale() function?

  • A.LC_SET
  • B.FLT_RADIX 2
  • C.LC_MESSAGES
  • D.SHRT_MAX

Answer: C

Correct answer: LC_MESSAGES

The category macros passed to setlocale are LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME and, in POSIX, LC_MESSAGES. Each names one aspect of the locale, so that a program can, say, take its number formatting from one locale and its messages from another.

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

Post your comment

Please log in or register to post a comment.