Q. What is the output of this function call?
Code:
#include <stdio.h>
int main() {
printf("%d", strcmp("abc", "abc"));
return 0;
}
β
Correct Answer: (C)
0
Explanation: strcmp returns 0 when both strings are equal.