Answer is Option C. -> strcmp(s1, s2) returns 0 if s1==s2
The strcmp return an int value that is
if s1 < s2 returns a value < 0
if s1 == s2 returns 0
if s1 > s2 returns a value > 0
From the above statements, that the third statement is only correct.
Which of the following statements are correct ? 1:A string is a collection of characters terminated by ''. 2:The format specifier %s is used to print a string. 3:The length of the string can be obtained by strlen(). 4:The pointer CANNOT work on string.