Multiple Choice
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
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: To declare a C-string, you should use
Q2: The following statement declares a string object
Q4: Which statements convert the string "10" to
Q5: Assume that str1 and str2 are variables
Q6: The string class append member function str.append(s)tacks
Q7: To account for the null terminator stored
Q9: A good way to convert a value
Q10: The code int x = 0; while
Q11: The >> operator can be used to
Q33: Although C++ provides ample library functions to