What is the output? printf("%d", strcmp("abc", "abd") < 0);
What is the output?
printf("%d", strcmp("abc", "abd") < 0);
Show answerHide answer
Correct answer: (C) 1
Explanation
"abc" is smaller than "abd", so strcmp is negative and the comparison is true.