Vidyalelo
C Programming · Q88

Arrays and Strings

Programming · C Programming · question 88

Q88

What will be the output of the following C code? char str1[] = "Helloworld "; char str2[] = "Hello"; len = strspn(str1, str2); printf("Length of initial segment matching %d ", len );

A.
6
B.
5
Answer
C.
4
D.
no match

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board