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 ex traction operator >>.
C) is to use an ostringstream object and the insertion operator <<.
D) is to use an istringstream object and the extraction operator >>.
E) None of the above
Correct Answer:
Verified
Q10: A C- string is a sequence of
Q11: Assume that str1 and str2 are objects
Q12: The string class member function returns the
Q13: The function converts a C- string to
Q14: The string class overloads the += operator
Q16: To access the last character of a
Q17: A good way to convert a value
Q18: An array of characters ending with the
Q19: The strcpy function's arguments are
A)two pointers to
Q20: The function accepts a C- string as
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