Multiple Choice
Assume that str1 and str2 are objects of the string class. The proper expression to use when comparing them for equality is
A) str1 = str2.
B) str1 == str2.
C) strcmp(str1, str2) .
D) str1.compare(str2) .
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q15: The string class member function _ will
Q16: The expression str1 < str 2 is
Q17: The strcpy function's arguments are<br>A) two string
Q18: The string class overloads the += operator
Q19: The string class member function _ returns
Q21: It is possible to implement a string
Q22: If str is a string class object,
Q23: The _ library function reverses the order
Q24: An array of characters ending with the
Q25: To declare an array that will store