Top

Discussion

Which among the given options is the right explanation for the statement size_t strcspn(c, s)?

  • A.return length of prefix of s consisting of characters not in c
  • B.return length of prefix of s consisting of characters present in c
  • C.return length of prefix of c consisting of characters not in s
  • D.return length of prefix of c consisting of characters present in s

Answer: C

The function size_t strcspn(c, s) is used to return length of prefix of c consisting of characters not in s.

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

Post your comment