The proper expression to compare the first characters of two string objects str1 and str2 is

A) str1[0] = str2[0].
B) str1[0] == str2[0].
C) strcmp(str1[0], str2[0]).
D) 'str1[0]' == 'str2[0]'.
E) None of the above


B) str1[0] == str2[0].

Computer Science & Information Technology

You might also like to view...

OgreAL uses a(n) object to represent an audio clip.

a. Effect b. SoundEffect c. Audio d. Sound

Computer Science & Information Technology

The input type="____________________" displays an option button.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Photographic images add interest and add impact to a presentation if done well

Indicate whether the statement is true or false

Computer Science & Information Technology

In the Linux scheduler, processes with the SCHED_OTHER type have the highest priority.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology