Which of the following is false?
A) If a string is converted to a C-style array using data, modifying the string could cause the pointer previously returned by data to become invalid.
B) Converting a string containing one or more null characters to a C-style string can cause logic errors.
C) c_str returns a character array of the same length as the string object it is called on.
D) copy implicitly converts a string to a non-null terminated character array.
Correct Answer:
Verified
Q9: Given the strings defined below, which statement
Q10: The function call string1.erase(5) will:
A) Return a
Q11: Strings:
A) Can use the subscript operator to
Q12: If string s1 has the value "computer"
Q13: If string s1 is lexicographically greater than
Q15: Which of the following returns a bool?
A)
Q16: If string s contains "antidisestablishmentarianism", then s.substr(7,
Q17: Class string has member function _ to
Q18: The total number of elements that can
Q19: Which of the following cannot be used
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