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\n", len );
Answer: B
The length of the maximum initial segment of the string str1 which consists entirely of characters from the string str2 is computed by strspn().