1.

What will be the output of the following C code?

 const char str1[]="ABCDEF1234567"; const char str2[] = "269"; len = strcspn(str1, str2); printf("First matching character is at %d n", len + 1);

A. First matching character is at 8
B. First matching character is at 7
C. First matching character is at 9
D. First matching character is at 12
Answer» B. First matching character is at 7


Discussion

No Comment Found

Related MCQs