1.

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 sThis question was posed to me in quiz.This interesting question is from String Operations topic in section String Operations in C of C

Answer»

Correct CHOICE is (c) return length of PREFIX of c consisting of characters not in s

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



Discussion

No Comment Found

Related InterviewSolutions