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
Q6: The null terminator stands for the ASCII
Q7: The expression strcmp("ab", "cde") returns
A)the boolean value
Q8: After num = atoi("1000"); executes, what value
Q9: The code int x = 0; while
Q10: A C- string is a sequence of
Q12: The string class member function returns the
Q13: The function converts a C- string to
Q14: The string class overloads the += operator
Q15: A good way to convert a string
Q16: To access the last character of 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