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

Discussion

Select the macro that affects the information provided by localeconv function.

  • A.LC_ALL
  • B.LC_COLLATE
  • C.LC_NUMERIC
  • D.LC_CTYPE

Answer: C

Correct answer: LC_NUMERIC

localeconv() reports the numeric and monetary conventions, so it is governed by LC_NUMERIC - decimal point and thousands separator - and by LC_MONETARY for the currency fields. LC_COLLATE affects string comparison and LC_CTYPE character classification; neither shows up in the struct lconv.

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

Post your comment

Please log in or register to post a comment.