A good way to convert a string such a "572" to an equivalent integer such as 572
A) is to use the C-library function itoa.
B) is to use an ostringstream object and the insertion operator <<.
C) is to use an istringstream object and the extraction operator >>.
D) is to use an ostringstream object and the extraction operator >>.
E) None of the above
Correct Answer:
Verified
Q27: To access the last character of a
Q28: There exist C++ stream classes that write
Q29: A C-string can be assigned to a
Q30: To declare an array that will store
Q31: After num = stoi("1000"); executes, what value
Q33: The _ library function reverses the order
Q34: To use the ostringstream class, you must
Q35: A C-string is a sequence of characters
Q36: The code int x = 0; while
Q37: The proper expression to compare the first
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