Multiple Choice
The proper expression to compare the first characters of two string objects str1 and str2 is
A) strcmp(str1[0], str2[0]) .
B) str1[0] == str2[0].
C) str1[0] = str2[0].
D) 'str1[0]' == 'str2[0]'.
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q5: To declare an array that will store
Q6: A good way to convert a string
Q7: The function concatenates the contents of one
Q8: The string class member function returns the
Q9: The library function reverses the order of
Q11: A C- string can be assigned to
Q12: The string class overloads the <sup>+= </sup>operator
Q14: A C- string is a sequence of
Q15: The <sup>strcpy</sup><sup> </sup>function's arguments are<br>A)two pointers to
Q39: By being able to pass arrays as