1.

Select the function that reads or sets location dependent information.(a) longjmp()(b) setlocale()(c) assert()(d) toupper()This question was addressed to me in an interview for internship.This key question is from Localization in division C Library of C

Answer»

The CORRECT OPTION is (b) setlocale()

EASY explanation - setlocale()function reads or SETS location dependent information.

The function declaration is as follows:

char *setlocale(int category, const char loc).



Discussion

No Comment Found

Related InterviewSolutions