Discussion :: Arrays
- What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC");
Answer : Option D
Explanation :
strcmp(s1, s2);
returns int as follows:
== 0, when s1 == s2
< 0, when s1 < s2
> 0, when s1 > s2
Be The First To Comment