Solved

Assume That Str1 and Str2 Are Objects of the String

Question 20

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions