1.

What is the function of strcoll()?(a) compares the string, result is dependent on the LC_COLLATE(b) copies the string, result is dependent on the LC_COLLATE(c) compares the string, result is not dependent on the LC_COLLATE(d) copies the string, result is not dependent on the LC_COLLATEI have been asked this question in an interview for job.My question is taken from String Operations in division String Operations in C of C

Answer» RIGHT choice is (a) compares the string, RESULT is DEPENDENT on the LC_COLLATE

Easiest explanation - The strcoll() FUNCTION compares the string s1 to the string s2, both interpreted as appropriate to the LC_COLLATE CATEGORY of the current locale.


Discussion

No Comment Found

Related InterviewSolutions