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

Discussion

What is the prototype of strcoll() function?

  • A.int strcoll(const char *s1,const char *s2)
  • B.int strcoll(const char *s1)
  • C.int strcoll(const *s1,const *s2)
  • D.int strcoll(const *s1)

Answer: A

Correct answer: int strcoll(const char *s1,const char *s2)

strcoll compares two strings, so it takes two const char * arguments and returns an int in the manner of strcmp. The const qualifiers state that neither string is modified.

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

Post your comment

Please log in or register to post a comment.