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) strcmp(str1, str2) .
B) str1.compare(str2) .
C) str1 == str2.
D) str1 = str2.
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Q19: When using the <sup>strcat</sup>function, you must be
Q20: Assume that <sup>str1</sup><sup> </sup>and <sup>str2</sup><sup> </sup>are variables
Q21: The expression <sup>str1 < str 2</sup><sup> </sup>is
Q21: It is possible to implement a string
Q22: The <sup>>></sup><sup> </sup>operator can be used to
Q24: The code <sup>int x = 0; while
Q25: An array of characters ending with the
Q26: The following statement declares a <sup>string</sup><sup> </sup>object
Q27: The function _ _ accepts pointers to
Q29: There exist C++ stream classes that write