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

Discussion

Select the function that reads or sets location dependent information.

  • A.longjmp()
  • B.setlocale()
  • C.assert()
  • D.toupper()

Answer: B

Correct answer: setlocale()

setlocale() reads or sets the program’s locale - the conventions for decimal points, currency, dates, character classification and collating order. Until it is called with something other than "C", a program uses the minimal default locale whatever the system is set to.

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

Post your comment

Please log in or register to post a comment.