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, 5);.
d. strncmp(string1, string2, 6);.

c. Strncmp(string1, string2, 5);.

Computer Science & Information Technology

You might also like to view...

What LINUX and UNIX utilities can be used for creating and manipulating libraries?

What will be an ideal response?

Computer Science & Information Technology

You have been tasked with maintaining a network that is jumbo frame enabled. What does this mean?

a. The MTU for the network can be as high as 9198 bytes. b. The network is not based on the Ethernet standard. c. Fragmented frames will be consolidated into whole frames before being sent. d. The MTU for the network is set at 65,535 bytes.

Computer Science & Information Technology