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...

Which statement is false?

a. A ListIterator accesses the elements of a List. b. Class ArrayList is a fixed-size array. c. A LinkedList is a linked list implementation of a List. d. ArrayLists execute faster than Vectors because they are not thread safe.

Computer Science & Information Technology

Which of the following is true?

A) All hashing algorithms give different hash codes to different objects, and the same hash code to equal objects B) A hash code of a Number object may be a float, an int, or a double C) Any application that overrides the Object hashCode method should also override the equals method D) Any application that overrides the Object equals method should also override the hashCode method

Computer Science & Information Technology

Planning the ________ of a website is one of the most important steps in developing a professional website.

A) structure B) HTML expertise C) graphics D) navigation E) promotion

Computer Science & Information Technology

Match the following terms to their meanings:

I. Selects a consecutive group of files A. Copy II. Selects a group of nonconsecutive files B. Shift Click III. Cancel a selection C. Copy or move IV. Hold down Ctrl while dragging a folder D. Ctrl Click V. Hold down right mouse while dragging a folder E. deselect

Computer Science & Information Technology