Top

Discussion

What will strcmp() function do?

  • A.compares the first n characters of the object
  • B.compares the string
  • C.undefined function
  • D.copies the string

Answer: B

The strcmp() function compares the string s1 to the string s2.
int strcmp(const char *s1,const char *s2);

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

Post your comment