What is the prototype of strcoll function?

What is the prototype of strcoll function? mcq and its answer is provided on this page.

strcoll() function compares the string pointed by first parameter to the string pointed by second parameter.

So strcoll() is string comparision function in c programming.

What is the prototype of strcoll function?

Que. What is the prototype of strcoll function?
a a) compares the first n characters of the object
b b) compares the string
c c) undefined function
d d) copies the string
e int strcmp(const char *s1,const char *s2);
f a) int strcoll(const char *s1,const char *s2)
g b) int strcoll(const char *s1)
h c) int strcoll(const *s1,const *s2)
i d) int strcoll(const *s1)
Answer: a
Explanation : The prototype of strcoll() function is int strcoll(const char *s1,const char *s2).


Comments