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
Q11: An array of characters ending with the
Q12: A good way to convert a value
Q13: Which statements convert the string "10" to
Q13: By being able to pass arrays as
Q14: The C++ compiler performs strict array bounds
Q15: The _ function converts an integer to
Q18: The null terminator stands for the ASCII
Q19: The strcpy function's arguments are
A) two string
Q20: The string class member function _ will
Q21: To use the strlen function in a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents