Multiple Choice
Which statements convert the string "10" to the integer value 10?
A) istringstream istr("10") ; int x; istr >> x;
B) ostringstream ostr("10") ; int x; ostr >> x;
C) int x = stoi("10") ;
D) int x = str("10") :
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: To declare a C-string, you should use
Q2: The following statement declares a string object
Q3: The proper expression to compare the first
Q5: Assume that str1 and str2 are variables
Q6: The string class append member function str.append(s)tacks
Q7: To account for the null terminator stored
Q9: A good way to convert a value
Q10: The code int x = 0; while
Q11: The >> operator can be used to
Q33: Although C++ provides ample library functions to