Multiple Choice
Assume that str1 and str2 are variables of type C-string. The proper expression to use when comparing them for equality is
A) str1 = str2.
B) str1 == str2.
C) strcmp(str1, str2) == 0.
D) str1.compare(str2) .
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
Q3: The proper expression to compare the first
Q4: Which statements convert the string "10" to
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