Question

Assuming that string1 = "hello" and string2 = "hello world", Which of the following returns 0?
(a) strcmp(string1, string2);
(b) strcmp(string1, string2, 6);
(c) strncmp(string1, string2, 6);
(d) strncmp(string1, string2, 5);

Answer

This answer is hidden. It contains 3 characters.